Data Grid View< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Any one else having problems setting a single column to ready only
dgv.Columns("myValue").ReadOnly.Equals(True)
Or am I missing something here
Data Grid View< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Any one else having problems setting a single column to ready only
dgv.Columns("myValue").ReadOnly.Equals(True)
Or am I missing something here
Data Grid View & Read Only
mike1942f
dgv.Columns(
"myValue").ReadOnly = TrueTried that before also but a no go.
Any other ideas
Note this is a windows form
Farpetrad
You're just checking if ReadOnly is true. You have to set it:
'Courier New'; mso-highlight: silver; mso-no-proof: yes">dgv.Columns("myValue").ReadOnly = True
Harish
-mark
DataGridView Program Manager
Microsoft
This post is provided "as-is"
DRoden
((BoundField) dgv.Columns("myValue")).ReadOnly = true;
in order to reveal access to the ReadOnly method.
this will only work if the columns collection is actually holding a BoundField object