Hi,
I am using MySql Database; I retrieved data from database and populate data to text field and I have made some modification on it. And I try to store changes to DataTable by using data.GetChanges() command; it is retrieving null value! If I am changing the record position I am getting the data changes by using same command. I think I have to execute some command before running GetChanges(). Please help me on this issue
Thanks & Regards
Thahir
Thahir PattanathelPosted Jun 22, 2012, 4:27 AM
Thanks & Regards
Thahir
Posted Jun 22, 2012, 3:17 AM
DataTable changes = data.GetChanges();
Add a break point in the above line and see, the modified records are available in data table.
Thahir PattanathelPosted Jun 22, 2012, 12:16 AM
Suthish NairPosted Jun 21, 2012, 1:31 PM
Posted Jun 21, 2012, 12:27 PM
Have you called called ,
datarow.BeginEdit();
//do the modification
datatow.EndEdit();