Hi All,
I have a datagrid with a datatable as the underlying datasource.
I need to select multiple rows in the datagrid & delete(not remove) them in the datatable. In other words, I need to set the corresponding rowstates as deleted.
Iam able to do this and the respective rows are not shown thereafter in the datagrid. But if i try to do a subsequent delete, the indexes in datagrid & datatable do not match.
Is there some way of solving this without adding an additional column (like an identity col) to the datatable?
Thanks & regards,
Pras.
GreggTB - 19 Dec 2004 18:41 GMT
Without seeing the code, it's difficult to tell but if I'm
understanding you, you're...
---> deleting the rows from the DataTable,
---> clearing the DataGrid and uncoupling it from its DataSource,
---> then refreshing the DataGrid's DataSource
...and the rows are still appearing? That doesn't make sense to me as
I'd think the rows shouldn't be appearing. Post the code you're using...