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
125
Determine the multi-column headers in a band of the WHDG
posted

I am looking for a way to iterate the collection of column group fields in a band of the grid.

I create a GroupField and some bound data fields at runtime and add the GroupField to the column collection of the band of the grid like so:

whdgResource.Bands[0].Columns.Add(myGroupField);

This works fine and we see the multi-column header with the proper columns under it.

On postback I want to rebuild the grid and find out what multi-column headers (GroupFields) exist and possibily remove or alter them.

I don't see any property that I can use to get a collection of group fields off the column collection of the band, or off the band itself.

Could you please provide a code sample that shows how to iterate the multi-column headers of a band so I can access them or alter them.

Thanks for your help!

Parents Reply Children
No Data