Hi,
Use the Delete method rather then the RemoveAt method. This is because,
Delete marks a row for deletion, modifying the HasChanges value, whereas
RemoveAt doesn't.
Eg.:
DataRow row = data.Tables[0].Rows[3];
row.Delete();
Have a look at:
www.msdn.microsoft.com/library/en-us/
cpguide/html/cpconDeletingDataRowFromDataTable.asp
HTH,
Rakesh Rajan
"andrewcw" wrote:
> When I perform this action, bChanges still remains false.
> Naturally I cannot persist the change because the dataset
> appears unmodified. Why is that ???
>
> _dsAllTables.Tables[tableName].Rows.RemoveAt(rowIndex);
> bool bChanges=_dsAllTables.HasChanges();
>
> Thanks in advance
> --
> Andrew