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
665
How to disable multi select in a UltraGrid
posted

Hello,

No doubt I'm probably missing something easy here but I would like to disable multi select in a UltraGrid i.e. You can't select multiple cells or rows etc.

In addition it would be good if you could switch off the ability to select cells or rows etc all together as long as you can still activate cells.

Thanks,
Paul 

  • 71886
    Verified Answer
    Offline posted

    Hello Paul,

    Could you please try setting the following:

    ultraGrid1.DisplayLayout.Override.SelectTypeCaell = Infragistics.Win.UltraWinGrid.SelectType.Single;
    ultraGrid1.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Single;
    

    As to your second question - please review the following code and see if it meets your requirements:

    ultraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.CellSelect;

    Please feel free to let me know if I misunderstood you or if you have any other questions.