Home Forums WinForms controls Xceed Grid for WinForms Embedded TextBox + button in Cell

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

    How would I extend the cell class to implement a NumericUpDown type control – using the Xceed TextBox with embedded buttons?

    Many thanks in advance.

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

    User (Old forums)
    Member
    Post count: 23064

    You should create a class that inherits from WinTextBox, and implements the Xceed.Grid.ICellEditor interface. In the documentation of Xceed.Grid, you can find how to implement this interface.
    Then you can use this class as CellEditor of one or more columns of your grid, like this:<code>MyEditor editor = new MyEditor();
    grid.Columns[“col1”].CellEditor = editor;</code>I think (not sure) that the next version of Xceed.Grid (2.6) will already integrate with these controls.

    Imported from legacy forums. Posted by Tommy (had 2983 views)

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