How to change the properties ofthe button at a Cell in a DataGridViewButton ? - c#
How to change the properties ofthe button at a Cell in a DataGridViewButton? this my code - I get error code -...us read only (DataGridViewButtonCell)MyDGV.Rows[i].Cells[3].Visible= tr开发者_StackOverflowue;
You have to find the control first and cast it to button then get its attribute
Button btn = (Button)MyDGV.items.FindControl("ButtonName");
btn.Visible = true;
精彩评论