开发者

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜