Hi all gurus,
I am back to my rescue team.
My application gets data in datagrid from datatable.
I am getting confused how I can update, insert , delete data [datagrid rows] in datatable.
can you please show me whit example !
Thank you,
-Nanc
Printable View
Hi all gurus,
I am back to my rescue team.
My application gets data in datagrid from datatable.
I am getting confused how I can update, insert , delete data [datagrid rows] in datatable.
can you please show me whit example !
Thank you,
-Nanc
to update a datatable use a sqlcommandbuilder.
VB Code:
'da is an adapter 'dt is a datatable dt.getchanges() dim cb as new sqlcommandbuilder(da) da.update(dt)
Thank you for your kind reply,
I tried as per you suggested, but it dosent change the data.
When I load data in datagrid from [let's say] table1, and edit the data in datagrid cells. When I click the Save button, it dosent give error. but data is not saved.
What could be the problem ?
Your help is sooooooooooo valuable, than you once again,
-Nanc
would you show us your code...in which it does not update the data?