Dynamic Unbound Column Editor not working

3 posts, 0 answers
  1. Curtis
    Curtis avatar
    63 posts
    Member since:
    Oct 2014

    Posted 16 Jan 2018 Link to this post

    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



    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!




  2. Curtis
    Curtis avatar
    63 posts
    Member since:
    Oct 2014

    Posted 16 Jan 2018 in reply to Curtis Link to this post

    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 :(




  3. Dimitar
    Dimitar avatar
    2823 posts

    Posted 17 Jan 2018 Link to this post

    Hello Curtis,

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

    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.
Back to Top