Search code examples
asp.netgridviewradgriddelete-row

How to delete specific row in the gridview when item is binded from session


I have grid where i am binding items from session variable , where their around 5 similar items in the grid, i have to delete a specific selected row , on what basis i can delete the selected item, when all the columns have similar items and feilds?


Solution

  • As you said you want to delete the selected row, for this you can use RowIndex to delete the selected row, GridView has a method DeleteRow which takes an index of row as a parameter.