Hi ,
I have set ViewStyleBand = ViewStyleBand.OutlookGroupBy;
Now, Can I set a different caption for every row's column header when its expanded?
I am able to capture the mouse event and set the caption if the UIElement is GroupByRowExpansionIndicatorUIElement but the caption changes at a grid level.Is there anyway I can have different column headers for every row in the grid?
Thanks,
K
I'm not sure what caption you are referring to. The column object applies to the whole band, not to any individual row.By default, there is only one set of column headers for each island of data, not one for each row. So I'm a little unclear on what part of the grid you are referring to. Can you post a screen shot of what you mean? Just attach an image file to your post and it will show up as an image here.
Hi
I think Karthik is wanting to know if column header captions can be different for each set of subrows.
Regards
Andy
Well... if that's the question, then the answer is no... and yes.
You can't do it through any properties of the grid. But you could use a DrawFilter or CreationFilter and draw/set the text yourself.
If you are going to try the CreationFilter, then I recommend that you download the Infragistics UIElementViewer Utility.
Find out what element is drawing the text in the header. It's probably a TextUIElement. Then you can trap the AfterCreateChildElements of whatever element is the parent of that TextUIElement, and then set the Text property on the TextUIElement to the text you want. The only problem with this is that the column will not take the text into account when auto-sizing.
Thanks for clarifying Andy ..
Thats precisely wat i wanted.
Thanks for the quick reply mike
Will try it right away..should be interesting