Hi Angel,
Is your datagrid winform or webform based?
Based on my understanding, you want to update the datatable when datagrid
value has been changed.
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:
http://www.codeproject.com/vb/net/da...ngconcepts.asp
For 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. This is because of the state-less of HTTP.
Normally, for webform datagrid, you may make certain row into edit mode,
then after editing, you should fire an event, such as
datagrid.UpdateCommand event. 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
http://msdn.microsoft.com/library/de...us/dv_vstechar
t/html/vbtchTopQuestionsAboutASPNETDataGridServerControl. asp
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.