Link to home
Start Free TrialLog in
Avatar of Aquarus
Aquarus

asked on

VSFlexGrid VB6

Here is how I am initiating Flex grid column with a checkbox in a run time:
200           .TextMatrix(0, FG_SELECT_COL) = "Select"
210           .ColAlignment(FG_SELECT_COL) = flexAlignCenterBottom
220           .ColDataType(FG_SELECT_COL) = flexDTBoolean
230           .ColWidth(FG_SELECT_COL) = 550

And it does not allow to check the checkbox.   What property I have forgotten to set up.
Avatar of HooKooDooKu
HooKooDooKu

I haven't used the VSFlexGrid control.  But ComponentOne documentation seems to indicate you are doing it right.: http://helpcentral.componentone.com/nethelp/vsflexgrid8/

One of the odd things I notice is that you are setting the TEXT of the top row, then setting the DataType to Boolean.  As a guess, try changing the order.  Set the Format 1st, then mark the 1st row as Fixed ( .FixedRows = 1), and THEN set the Text with .TextMatrix.

If that doesn't work, then for test purposes, leave out the TextMatrix command all together.  If that does work, then try to find some property that flags a row as a "title" row so that the DataType property doesn't apply to it.

ASKER CERTIFIED SOLUTION
Avatar of Aquarus
Aquarus

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aquarus

ASKER

because it worked