I have a very simple grid - its blank. No rows, no columns. The grid control's name = gg
In Code I add one column: GridViewTextBoxColumn() like this:
Dim myCol As GridViewDataColumn = Nothing
myCol = New GridViewTextBoxColumn()
myCol.DataType = GetType(String)
myCol.Name = "Test Texteditor"
myCol.FieldName = "TestText"
myCol.HeaderText = "TestText"
myCol.ReadOnly = False
myCol.IsVisible = True
gg.Columns.Add(myCol)
I have another method that creates a row for testing.
I've checked ReadOnly on: Grid, Row, Column and Cell. ALL are ReadOnly = False
but when I double-click on the cell - nothing happens. No Text Editor nothing. At first I thought, ok I'm creating this column dynamically so there must be some methods I'm supposed to hook into (AddHandler) and specifically I figured I'd need to hook into EditorRequired but there's no such method for a GridViewDataColumn() so I'm really stuck.
I'm 100% certain I'm doing something stupid and any help or nudge or shove in the correct direction would be very appreciated.
Thank you!
-Curtis