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.
I had a similar issue. I simply disabled the view of the Column in BindData() function.
BindData()
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!