Changing GridBoundColumns Column Width

How do i manually set the column width for GDBG ? on further searching i was able to locate this article but i think it was meant for 2.x http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=10464 We are using 3.1, so just want to make sure do i need to adopt the same approach or is there any other simple way to increase the column width... Regards Yogi

2 Replies

AD Administrator Syncfusion Team March 4, 2005 03:32 PM UTC

To set a column width, you use code like gridDataBoundGrid1.Model.ColWidths["Col1"] = 150; If you are trying to do this initially, you also have to set grid.AllowResizeToFit = false. If you do not, the grid''s default sizing will step on your explicit sizing.


AD Administrator Syncfusion Team March 4, 2005 03:36 PM UTC

Thx.. ideally it should be part of Grid Designer... hope u must have considered this in your next release... Thx again..

Loader.
Up arrow icon