.net - How can I delete from a GridView when DataSource is a DataTable? -


My datasource is datatable with populated data system data from time to time, there is no database, how can I remove rows from DataTable and Can I rebound? I thought it was to be done in the Gridview_RO Comand and "Delete" section ...

  if (e.CommandName == "Delete") ...  

When I try to use within Detroit

  // get dataable Datatable DT = this .gridCPCP.DataSource as DataTable; // Delete Record (Detarva DR in DT RO) {....  

dt is zero. How can I get the reference to the datatel when removing the record?

e You must specify a line order that should be removed in the CommandArgument. You can tie your dataset in grid again without the deleted items.


Comments