Updating datagrid c

posted by | Leave a comment

i.e., data should be updated whenever user completes entering a row. To add some details: On Current Cell Changed should be overridden to determine when the user is moved to the next row. Then the row state should be analyzed, and if the underlying data row has been changed, changes should be propagated to the database. I wanted to refresh my datagrid itemssource in code behind, and nothing updated. how can i update the database, When the user completes entering data for a row. When this happens, you will have to access the data adapter that created the data set that the grid bound to, and pass the data set to the adapter through the Update method. how can i update the database, When the user completes entering data for a row.Current underlying data row can be obtained like this: Currency Manager cm = (Currency Manager)grid. NET MVP] X-Unity Unit Testing and Integration Environment reliable . NET/C# MVP]" Nanda, In this case, you will have to hook into the grid and catch when the row changes. NET/C# MVP] - ni**************@"Nanda" hi, i have an editable datagrid.i.e., data should be updated whenever user completes entering a row. Nanda, In this case, you will have to hook into the grid and catch when the row changes. NET/C# MVP] - ni**************@"Nanda" hi, i have an editable datagrid. i.e., data should be updated whenever user completes entering a row.

updating datagrid c-87

In windows form datagrid, the databinding is a two way binding, if the value in the datagrid is changed, the underlying datasource is also updated.For more information, please refer to: webform, the databinding is one way, that is: you can only populate the datasource to the datagrid.But the datasource does not know the change of datagrid. Normally, for webform datagrid, you may make certain row into edit mode, then after editing, you should fire an event, such as datagrid. In this event, you can get all the updated values in this row, and update the underlying dataset(datatable) For more information, please refer to "Editing Multiple Rows At Once" section in below article t/html/vbtch Top Questions About ASPNETData Grid Server Control. If you have any questions or concerns, please feel free to post it in the group. Best regards, Jeffrey Tan Microsoft Online Partner Support Get Secure!- This posting is provided "as is" with no warranties and confers no rights.Hi Angel, Is your datagrid winform or webform based?

Leave a Reply

Hot chat lines always free