[英]How to change a column/Field of asp grid to readonly in code behind (vb.net)
I am having a asp grid on front, its all columns are enabled. 我前面有一个ASP网格,其所有列均已启用。 On specific action, I want only one column to be read only.
关于特定操作,我只希望将一列设为只读。 How can i do this code behind file (vb.net).
我该如何在文件(vb.net)后面执行此代码。
Update : I want to disable all rows of one column. 更新:我想禁用一列的所有行。 Not only the selected one.
不仅是选中的一个。
Thanks.. 谢谢..
For row As Integer = 0 To grd.Rows.Count - 1
grd.Rows(row).Cells(1).Enabled = False
Next
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.