hi,
im using dataset's getxml() to bind the datagrid. Is there any possiblity to edit the datagrid and update the data to Database again?
How to implement this in ASP.NET?
thanking u
v.r.mahendran
Printable View
hi,
im using dataset's getxml() to bind the datagrid. Is there any possiblity to edit the datagrid and update the data to Database again?
How to implement this in ASP.NET?
thanking u
v.r.mahendran
since asp .net does not maintain any session state, you will have to do some extra work.
1st - each row in the datatable has to have a unique identifier (PK). you need to add a column in the datagrid that's source is set to the unique column and make that column not visible.
2nd - on the edit command, you need some code like below.then update the datarow values.
dim dr as datarow
datarow = ds.tables(0).rows.find(e.item.cells(0).text)(0)