How to disable inline editing in GridView?

前端 未结 3 1928
孤街浪徒
孤街浪徒 2021-01-18 17:38

I am using ASP.NET C# Grid View, i want to edit data in control which display on same page. but when i wrote grid view row editing event it display text boxes in grid view r

相关标签:
3条回答
  • 2021-01-18 18:16

    Remove <EditItemTemplate></EditItemTemplate> from the grid view <asp:TemplateField></asp:TemplateField>.

    0 讨论(0)
  • 2021-01-18 18:22

    I had the same problem, and by a little struggling I found out that the problem was on the CommandNames in my case.

    I changed Edit to edt and Delete to del, and since then the gridViewName_RowEditing event never fired again.

    0 讨论(0)
  • 2021-01-18 18:28

    Will you try using below link

    http://csharpdotnetfreak.blogspot.no/2008/12/hide-gridview-columns-in-normal-mode.html?m=1

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