Page 1 of 1

CRDBGrid - Column Width & Horiz. Scroll

Posted: Wed 30 Jul 2014 16:11
by MFaust_2000
I'm having a challenge with the CRDBGrid and what it allows for the column sizes. Is there a maximum width for the grid itself? If I change the component to Alignment=AlNone, i'm able to have a really wide grid. If I change it to AlClient, the Grid itself has a maximum size of 911 and I'm unable to increase the individual column widths.

Second question, how do I get the horizontal scroll bar to display.

Thanks in advance for your help!

Re: CRDBGrid - Column Width & Horiz. Scroll

Posted: Fri 01 Aug 2014 13:13
by ViktorV
To get the horizontal scrollbar displayed, you can change the Resize method in the CRGrid source code.
Add the following line:
ShowScrollBar(Handle, SB_HORZ, true);

I can not reproduce the problem with column width. If the dgeStretch option is not set in the TCRGrid.OptionsEx property, I can change column width without restrictions. Try to compose a small sample to demonstrate the problem and send it to viktorv*devart*com.