Re: codejock grids and last column
Originally Posted by
Ian Smith
Any column can be set to auto size, this should work in the DAW cCJGrid classes
1. Enable auto column sizing
Set pbAutoColumnSizing to True //for the grid
2. For the column that needs to auto size
a. Make sure that the column can be resized Set pbResizable to Tue
b. Turn on auto sizing Set ComAutoSize to True //See Note 1
3. For all other columns
a. Turn off auto sizing Set ComAutoSize to False //See Note 1
b. Explicitly set the column width Set piWidth to iWidth
Note 1
The auto size property of the column has not been exposed in the cCJGridColumn class, so you will need to set ComAutoSize in OnCreateColumn of the column
thanks Ian, I'll try it.
I should be on a beach ...