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

    I allow grouping. I want to prevent the user from selecting the GroupManagerRow. They need to be able to expand/collapse it, but I don’t want it added to the SelectedRows Collection. Can I do that?

    Imported from legacy forums. Posted by Robert (had 1907 views)

    User (Old forums)
    Member
    Post count: 23064

    I think I solved this..

    private void gridControl_CurrentRowChanged(object sender, EventArgs e)
    {
    if (gridControl.CurrentRow is Xceed.Grid.GroupManagerRow)
    gridControl.CurrentRow.CanBeSelected = false;
    }

    Imported from legacy forums. Posted by Robert (had 2957 views)

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