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!
CRDBGrid - Column Width & Horiz. Scroll
Re: CRDBGrid - Column Width & Horiz. Scroll
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.
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.