How to disable a control in command field control in gridview

后端 未结 5 451
刺人心
刺人心 2021-01-07 09:07

how to find a command field control in the gridview.

in a method not in the row data bound.

so far i have used this coding but i cant find the control.

5条回答
  •  天涯浪人
    2021-01-07 09:51

    I had a similar issue. I simply disabled the view of the Column in BindData() function.

    GridView1.Columns[0].Visible = false;
    

    This worked for me, since my first column was Edit column and I have to enable it for specific users only.

    Good luck!

提交回复
热议问题