Home Forums WinForms controls Xceed Grid for WinForms Ho to put my user control in the grid?

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

    Pls help me.. i’ve tryed to use CellEditor and CellViewer… but its isn’t work.

    That they are the Functions and the Subs that I should perform the Override?

    Somebody can help me?

    Imported from legacy forums. Posted by Fusion (had 3048 views)

    User (Old forums)
    Member
    Post count: 23064

    Ok ok… now i’ve my control in the grid but only in EDIT mode… 🙁

    How to set it always visible?

    Imported from legacy forums. Posted by Fusion (had 241 views)

    User (Old forums)
    Member
    Post count: 23064

    Please show some code, so we can help you

    Imported from legacy forums. Posted by C# (had 251 views)

    User (Old forums)
    Member
    Post count: 23064

    If you want your control to be always visible, it has to implement the <b>ICellViewer</b>-interface, and you have to set the <b>CellViewer</b>-property of the cells/columns to an instance of your control.
    In the <b>ICellViewer.PaintCellValue</b>-method, you have to paint your control. This method has 2 arguments: <b>GridPaintEventArgs e</b> and <b>Cell c</b>. The value of the cell can be found in <b>c.Value</b>. The position and size of the cell are in <b>e.DisplayRectangle</b>, and the Graphics-object to paint to is <b>e.Graphics</b>.

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

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