how do i get the grid control to resize itself to show all the text in the header?
i got some long text for a header, the text wraps when the grid is resized, and the top and bottom get cut off
i''d like to resize the height of the header to accommodate the text.
thanks in advance!
ADAdministrator Syncfusion Team January 19, 2004 01:48 PM
but it doesn''t work ( i actually tried that line of code before posting the question )
is there any other properties setting might stop the ResizeToFit from happening?
ADAdministrator Syncfusion Team January 19, 2004 03:30 PM
Those calls worked for me in this sample
using 18.104.22.168. Do they work for you? If not, what version are you using?
ADAdministrator Syncfusion Team January 20, 2004 03:56 PM
thanks for the sample, clay
please open the attached screenshot and you can see how the text in the header gets cut off
by the way, i notice that you used VS.net 1.0 and i had to convert the project to 1.1 to run it(but i doubt that matters)
ADAdministrator Syncfusion Team January 20, 2004 04:01 PM
sorry, clay, it''s just that your code doesn''t handle the resize event, please ignore my previous post and screen shot,
ADAdministrator Syncfusion Team January 20, 2004 04:50 PM
clay, i''ve found a very wired problem
the ResizeToFit works fine as long as you don''t have hidden columns on the grid
if i add the following line of code to your sample before the ResizeToFit happens, it just stops working
this.gridControl1.HideCols = true;
any idea why? and any work around?
ADAdministrator Syncfusion Team January 20, 2004 06:17 PM
I don''t see the poblem in 2020. I put your line of code as the first line in FormLoad, and the headers resize as before except the 3rd column is hidden.