Hi All,
I want to dispaly the colunder header in two lines. ie e.g. the column name " Test Column Header" should be displayed as "Test Column" in one line and in the second line "Header" should be displayed. I tried using Environment.Newline but that is not successful.
Please let me know how to implement this.
Regards,
Abhi
Hi Jarrodd,
yes this way also can be followed. But if I want to decide at which text I need to have in the second line.. this is not possbile.
Regard,Abhi
Another way is:
Gridname.Columns.FromKey("colName").Header.Style.Wrap = True
When you do it this way, the grid will just try and make it fit (like Excel). Less control then the method listed above, but also less worry.
Thank you its working ....
You can put HTML <br /> tags in the header text.