Home Forums WinForms controls Xceed Grid for WinForms Edit using GridNumericTextBox

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13527 |

    Hi.
    I associate a GridNumericTextBox for editing number in a cell.
    If enter in edit mode pressing a number all works fine.
    If I press a key that is not a number the editing process correctly doesn’t start.
    But if I press F2 or if I click twice on the cell, the editing begun but i can write all characters, not only number.
    It seem like the GridNumericTextBox is not the editor for the cell, but if i watch for it in the Entering_Edit event, I see it associated with the cell.

    How can i manage this?

    Thanks.

    Imported from legacy forums. Posted by Gian Luigi (had 579 views)

    User (Old forums)
    Member
    Post count: 23064

    The Cell.CellEditor will always be nothing onless you specify one.
    When you edit a cell, if no editor was given it will always use the default editor base on the data type.

    Ex. GridNumericTextBox for number
    GridDateTimePicker for date

    Imported from legacy forums. Posted by Ezeckiel (had 2720 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.