Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
415
Full row still selects even when Grid.DisplayLayout.Override.CellClickAction = CellClickAction.CellSelect?
posted

This is driving me insane... no matter what options I set for the grid it always selects the full row! I've tried the above code, and I've even used the designer to go through to selection styles but no matter what when I click a cell it is always selecting the full row. What am I doing wrong?

Parents
No Data
Reply
  • 45049
    Suggested Answer
    posted

    Chances are that your row is being "activated" instead of "selected."  The default preset for the grid uses the same background color for the grid's active row as it does for selected rows.

    See what happens when you set the following properties of your grid, so that the active row shows no background or foreground color:

    .DisplayLayout.Override.ActiveRowAppearance.BackColor = Color.Empty
    .DisplayLayout.Override.ActiveRowAppearance.ForeColor = Color.Empty

Children