Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
Ultragrid data not updated to dataset
posted

I am facing similar issue (http://es.infragistics.com/community/forums/t/27341.aspx)

Below are snippet from code:

this.usernameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.userManagementDataSet, "users.username", true));

this.systemUsersGrid.DataMember = "users";
this.systemUsersGrid.DataSource = this.userManagementDataSet;

Now, the user creates a new user using the below code :

userManagementDataSet.users.AddusersRow("NU" + _newUserCount, string.Empty, 101, "New", "User", DateTime.Now, string.Empty, string.Empty);

The dataset is updated and same is shown in textbox.

The user after editing user data closes the form

the change is not committed to the db. Saving code:

_sysUsersDa.Update(userManagementDataSet.users)

I tried the below code to try to update grid data:

var userName = usernameTextBox.Text;

systemUsersGrid.Selected.Rows[0].Cells["username"].Value = userName;

systemUsersGrid.UpdateData();

But again nothing is saved

Please suggest

Parents
No Data
Reply
  • 21795
    Offline posted

    Hello Pankaj,

    Thank you for posting in our forum.

    I saw that you had created a case, #CAS-166909-S1N6R5, in our customer support system and we answered there your question.

    Please check the information we have send you and let me know if you need any additional information through you case.

Children
No Data