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
400
How to select only a cell and not all row in a grid?
posted

Hello,

I have a WinGrid in one form that needs to select only the cell that I click on, not all the row related to that cell. I haven't been able to achieve that, so I'll ask for help: is this possible? How?

I think it should be something that controls that in the OverrideLayout of the grid, but I can't find it. Something like CellSelectionType = Row/Column/Cell or something like that.

Thanks in advance!

Parents
No Data
Reply
  • 23930
    Offline posted

    Hello Xe,

    Thank you for contacting Infragistics Developer Support.

    If you want to select a cell only when you click on it you could set the CellClickAction property to CellSelect. You can do that by using the following line:

            ultraGrid1.DisplayLayout.Override.CellClickAction = CellClickAction.CellSelect;

    Note that by doing that the row will still become the active row and the active row appearance will be applied to the whole row. So you might want to turn off active row appearances:

            ultraGrid1.DisplayLayout.Override.ActiveAppearancesEnabled = DefaultableBoolean.False;

    Let me know if you have any additional questions.

Children