This is a migrated thread and some comments may be shown as answers.

Dynamic Unbound Column Editor not working

2 Answers 13 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Curtis
Top achievements
Rank 1
Veteran
Curtis asked on 16 Jan 2018, 10:09 PM

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

 

 

2 Answers, 1 is accepted

Sort by
0
Curtis
Top achievements
Rank 1
Veteran
answered on 16 Jan 2018, 10:24 PM

Never mind folks.  I'm an idiot.

I'd copied the control from another form because it already had the numerous grid-settings I wanted...I'd forgotten to check the GRID property, AllowEditRow.  Mine was set to False :(

 

*sigh*  THANK YOU ANYWAY FOLKS!!!

 

0
Dimitar
Telerik team
answered on 17 Jan 2018, 09:11 AM
Hello Curtis,

I am glad that you have found a solution for this. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Curtis
Top achievements
Rank 1
Veteran
Answers by
Curtis
Top achievements
Rank 1
Veteran
Dimitar
Telerik team
Share this question
or