VB6 and MSHFlexgrids

Permabanned
Joined
24 Dec 2002
Posts
474
Location
Chelmsford, Essex. Bling Bling
Is it possible to programmatically add bands to a MSHFlexgrid?

Ive got a recordset that has 12 records in it. 6 are tagged as belonging to group1 the other 6 have a groupID of 2.

Id like to be able to bind that to a grid but to tell the grid to make 2 bands based on those GroupID's so you can expand and collapse it.

So either manually build the grid row by row adding in the bands or somehow tell the grid that its band information can be found in those fields.

Any way of doing this?
 
Not quite sure what you mean. To fill the MSHFlexGrid you simply do:

Set myGrid.DataSource = MyRS

How do you mean expand and collapse? The MSHFlexGrid does not have this feature by default, I am not even sure if it is possible. It maybe with API's but I have not looked in to it.

Can you explain a little better and what you are tying to achive?

From what I do understand you may be better using the TreeView and setup a couple of Nodes.

Cheers,

sfx
 
Back
Top Bottom