1
Answer

delete a row

Ask a question
mark jones

mark jones

18y
2.9k
1
I was hoping that someone could assist me in the following. I have created a dataset in c# and have bound this to a datagrid and I want to delete a row in the datatable in the dataset. I know how to add a row to the dataset but am unsure of how to delete a row. I want to delete a row by using the unique ID number but I am unsure of how to do this. Can I use the indexof operator to obtain the index of the row in the datatable? I am not using an adapter as the datasource is based on xml. I would be grateful of any advice.

Answers (1)