Home Forums WinForms controls Xceed Grid for WinForms Row selection in custom CellViewerManager

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

    I have subclassed the CellViewerManager class, wrapping a GridControl, and overriding the SetControlValueCore method by adding rows to this control. For each row the CanBeSelected property is true. When I run the code I am unable to select individual rows on the grid, within the viewer. (No matter where I click in the viewer the SelectedRowsChanged event never fires.) The cell in question is in a detail grid, is not editable and has no CellEditorManager.

    Any advice about how to select rows in a viewer in this context would be greatly appreciated.

    Best regards,

    Aaron Haspel

    Imported from legacy forums. Posted by Aaron (had 1459 views)

    User (Old forums)
    Member
    Post count: 23064

    You could also subclass the CellEditorManager as you did the CellViewerManager, then set the grid inside to be ReadOnly.  This should permit the user the select rows in the grid without being able to edit it.

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

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