Hello,
My UltraGrid is set to RowLayoutStyle because we need to support fixed columns. Is there a way to allow user to change the column header height?
Your help is greatly appreciated!
Best regards,Shaolin
Hi Shaolin,
I'm not sure which column arrangement method you are using because Row Layout mode is not compatible with frozen columns.
If you are in Row Layout mode, users should be able to change the header height by default.If you are using Groups and Levels (the default), then users cannot change header height. You can modify this in code by setting the ColHeaderLines property on the Band.
Please let me know if you have any further questions.
Hi Mike,
Thanks for your response!
The RowLayoutStyle of my UltraGrid's band is None (the default value.)
Is there any work around to achieve both at the same time?
Any suggestion and help is greatly appreciated!
These features are not compatible with each other, so there is not a way to have both at the same time. I recommend submitting this as a new product idea: http://ideas.infragistics.com/forums/192359-windows-forms.
Thanks for your reply!
I am quite disappointed. I have my own HeaderUIElement class that is derived from Infragistics HeaderUIElement. What methods do I have to override in order to make the header adjustable vertically?
While in Groups and Levels mode, header height is controlled by the ColHeaderLines property. For this reason, the header height cannot be expressed in pixels.
It may be possible to add some kind of custom element to the UI which users can drag around that dynamically sets the ColHeaderLines property. However, such an implementation would be out of the scope of developer support. If you go forward with this implementation and have specific questions, do let me know and I can help point you in the right direction.
Proerty ColHeaderLines is not what I am looking for. What I want is to allow user to change the header height by clicking on the bottom edge of a column header and dragging up or down, in the similar way of changing a column width. As I mentioned earlier, I have my own HeaderUIElement that is derived from Infragistics HeaderUIElement. I need suggestions of overriding some of the methods.
This is possible to achieve through a CreationFilter and custom UI element. Please take a look at the attached sample to see how we achieved it.