开发者

How to change the properties ofthe button at a Cell in a DataGridViewButton ? - c#

开发者 https://www.devze.com 2023-01-14 00:40 出处:网络
How to change the properties ofthe button at a Cell in a DataGridViewButton? this my code - I get error code -...us read only

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

精彩评论

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