updating datatable with datagrid changes

  • Thread starter Thread starter Angel
  • Start date Start date
A

Angel

How can I update the datatable with the datagrid values after the datagrid
itself has been modified.? I assume it's not automatically done.

Thanks.
 
Hi Angel,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
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/databindingconcepts.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/default.asp?url=/library/en-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.
 
The datagrid is in a windows form. So I do not have to take any additional
steps since it's automatic.

Thanks.
 
Hi Angel,

Thanks for your feedback.

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.
 
Back
Top