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.
Cast it as a DataControlFieldCell and then set Enabled to false.
Where: row.Controls[0] is your CommandField control
foreach (GridViewRow row in ManageDNXGridView.Rows) { DataControlFieldCell editable = (DataControlFieldCell)row.Controls[0]; editable.Enabled = false; }