Delete Data in DataGrid
Hi,
This is my first post in this forum. I am using ASP.NET 1.1. I am able to do edit operation in DataGrid. But Is there any way to delete record in DataGrid?
Thanks in Advance
Hi,
This is my first post in this forum. I am using ASP.NET 1.1. I am able to do edit operation in DataGrid. But Is there any way to delete record in DataGrid?
Thanks in Advance
Hi Paul
Is your datagrid bound to a datasource (eg a datatable)?
If so, simply remove the relevant data from the source and the changes should be reflected in the datagrid.
If you are not data binding, please let me know what mechanism you are using to populate the grid.
Thanks
Richard
I am having an issue similar to this. I have written code to delete multiple rows at a time in a datatable by looping and deleting one row at a time out of the "Selected.Rows" collection. I was wondering if there is another way to do this so that the program does not prompt each time "You have chosen to delete 1 row. Are you sure?" such that it says it 4 times if I have chosen to delete four rows. Any help is appreciated. Thanks
TJ