Home Forums WinForms controls Xceed Grid for WinForms WinCheckBox in the column title ?

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

    Hi,

    Is it possible to insert a wincheckbox control in the header of a column ?
    I’ve tried this code but no success :

    For Each cell In MyColumnManagerRow.Cells
    Dim ChkTitle As New Xceed.Editors.WinCheckBox(cell.ParentColumn.Title)
    Dim ChkEditor As New Xceed.Grid.Editors.CheckBoxEditor(ChkTitle)
    Dim ChkViewer As New Xceed.Grid.Viewers.CheckBoxViewer(ChkTitle)

    cell.CellEditorManager = ChkEditor
    cell.CellViewerManager = ChkViewer
    Next

    I’ve a cross for each cell.

    Thx a lot.

    Imported from legacy forums. Posted by Pierrick (had 2352 views)

    User (Old forums)
    Member
    Post count: 23064

    This is not possible. The ColumnManagerRow is a special row which won’t permit you to do that. However, depending on what you want to do, you can use a ValueRow, add it to the FixedHeaderRows collection, and in the cells of this row you can set CellEditorManager. You can hide (or not) the ColumnManagerRow.

    Imported from legacy forums. Posted by André (had 268 views)

    User (Old forums)
    Member
    Post count: 23064

    ok thx.

    Imported from legacy forums. Posted by Pierrick (had 3355 views)

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