Hi,
I've been playing with the FieldChooser of the UltraWinGrid and need to be able to customise it a little.
Currenly i have a grid bound to an sql table and all the columns are grouped under common headings like so:
Within the field chooser i need to do the following:
For the second issue, i know there is the ColumnChooserControl.ColumnDisplayOrder field.. but it doesn't seem to be exactly the same as the columns when i set it to SameAsGrid.. Maybe this is because i've re-arranged the columns in the UltraGrid Designer??
To be able to do what i'm asking, would i need to make a custom field chooser form? or is there a way i could add these things in myself with the automatic field chooser?
Thanks for your help,
Craig
Hi Craig,
1. To prevent any column from being displayed in the column chooser, set its ExcludeFromColumnChooser property.
2. I'm not sure if this is going to work as I haven't tried it myself but you can try setting the columnChooser.DisplayGrid.DisplayLayout.Bands[0].Columns["Value"].SortComparer to a comparer that will sort columns in the order you like. Basically the column chooser control itself displays all the column headers using UltraGrid which is returned from DisplayGrid property.
3. If you want to display a button on the form then you will have to create your own form and put column chooser on it. There's a sample in the Samples Explorer that shows how to create a custom column chooser form and embed the column chooser control inside it.
Hope this helps,
Sandip
Anyone have any idea's at all?