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
880
How to allow column selection on some columns and not others?
posted

Hi, I'm trying to allow some columns to be selectable while preventing column selections on some other columns in the WinGrid.

I've used the BeforeSelectChange event to cancel the selection when the selection type is column header and the appropriate column is being selected (I check the NewSelections collection to see which columns have been selected).

This mostly works (some problems with multi-column selections), however when the selection is cancelled it seems to disable the column moving and Outlook-style grouping functionality (the drag and drop bit) as well.

I want the non-selectable columns to be groupable and re-arrangable, and the selectable columns to be just selectable.

Anyone got any ideas on how this can be done?

Thanks,

John.