tags:

views:

164

answers:

1

Hi I need advice. I try this

DataSet ds = new DataSet();
ds.AcceptChanges();

//edit table in ds
ds.Tables[0].Rows.RemoveAt(0);

//get changes
DataSet ds2 = ds.GetChanges();

but ds2 is null, why?
+1  A: 

Maybe the table was already empty, do removing the first row didn't change anything?

codymanix
I bind dataset table in grid view, and than a i call this code
Paul