How to delete a row from GridView?

后端 未结 7 468
攒了一身酷
攒了一身酷 2020-11-29 12:14

I am using GridView control in asp.net 2005 c# using .

How can I delete a particular row from GridView.

I have written the followin

相关标签:
7条回答
  • 2020-11-29 13:02

    You are deleting the row from the gridview but you are then going and calling databind again which is just refreshing the gridview to the same state that the original datasource is in.

    Either remove it from the datasource and then databind, or databind and remove it from the gridview without redatabinding.

    0 讨论(0)
提交回复
热议问题