M
Marshall
Hey all,
Working in C# with the Windows Forms 2.0 "DataGridView" control here, and a
column of cells of type DataGridViewLinkCell. The DGV is bound to a
datasource, and user is allowed to add rows.
The subject line is a bit of a misnomer in that I *can* set the ReadOnly
property to false - both at design time and at run-time - but am still
unable to directly edit the cell's contents (by clicking into the cell and
typing, for instance). Programmatically setting the cells' contents works
fine, but I can't for the life of me get the ReadOnly = false to take.
I've read up on the DGVLC and it's members, and although it speaks as if
this is absolutely doable, it's not doable for me. Most of its properties
are inherited from DataGridViewCell, which has this to say about the
ReadOnly property...
(taken from:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.readonly.aspx)
"The ReadOnly property indicates whether the data displayed by the cell can
be edited. You can set ReadOnly for individual cells, or you can make an
entire row or column of cells read-only by setting the
DataGridViewRow.ReadOnly or DataGridViewColumn.ReadOnly properties. By
default, if a cell's parent row or column is set to read-only, the child
cells will adopt the same value. You can override this default behavior by
setting ReadOnly for individual cells."
Just to note, I've got no trouble editing "normal" DGVCells.
Has anyone else seen this behavior, or have any clue as to what I'm missing?
Thanks in advance!
--Marshall
Working in C# with the Windows Forms 2.0 "DataGridView" control here, and a
column of cells of type DataGridViewLinkCell. The DGV is bound to a
datasource, and user is allowed to add rows.
The subject line is a bit of a misnomer in that I *can* set the ReadOnly
property to false - both at design time and at run-time - but am still
unable to directly edit the cell's contents (by clicking into the cell and
typing, for instance). Programmatically setting the cells' contents works
fine, but I can't for the life of me get the ReadOnly = false to take.
I've read up on the DGVLC and it's members, and although it speaks as if
this is absolutely doable, it's not doable for me. Most of its properties
are inherited from DataGridViewCell, which has this to say about the
ReadOnly property...
(taken from:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.readonly.aspx)
"The ReadOnly property indicates whether the data displayed by the cell can
be edited. You can set ReadOnly for individual cells, or you can make an
entire row or column of cells read-only by setting the
DataGridViewRow.ReadOnly or DataGridViewColumn.ReadOnly properties. By
default, if a cell's parent row or column is set to read-only, the child
cells will adopt the same value. You can override this default behavior by
setting ReadOnly for individual cells."
Just to note, I've got no trouble editing "normal" DGVCells.
Has anyone else seen this behavior, or have any clue as to what I'm missing?
Thanks in advance!
--Marshall