Click to See Complete Forum and Search --> : looking for a control


Sebastian Thoma
June 14th, 2000, 08:53 AM
Hi,
I am looking for a certain control. It should be well-known because it is part of the VB IDE. It is the properties in the Categorized view. It looks like a hybrid between a treeview an some kind of grid. I would like to use it but neither know the name nor a location where I can find it

Regards
Sebastian Thoma

Lothar Haensler
June 14th, 2000, 08:57 AM
Unfortunately this is not an OCX that you can use in your own VB programs.
You can get pretty close, though by using a Hierarchical Flexgrid Control.
It has the Grid functionality as well as the open/close functionality.

Sebastian Thoma
June 15th, 2000, 02:47 AM
I also thought off that, but it seems that the Hierarchical Flexgrid works only in connection with a Database, at least concerning the open/close functionality.
I also want to insert other controls in the cells (e.g. comboboxes), which would be difficult with a flexgrid.
But thanks any way
Sebastian Thoma

Lothar Haensler
June 15th, 2000, 02:53 AM
you really don't need a database to use the HFlexGrid.
But, you are right. displaying controls inside cells is probably hard to implement.

There is a third-Party control that could really help you: FarPoint's Spread control: http://www.fpoint.com

Sebastian Thoma
June 15th, 2000, 03:12 AM
Do you have a code sample for using a HiFlexGrid without a Database? As far as I know you can use the HiFlexGrid without database, but when it not hierarchical. It would help just to have the hierarchical mechanism.

Lothar Haensler
June 15th, 2000, 03:17 AM
there is a sample on MSDN.
heading of the article is "Fabricating Hierarchical Recordsets".
search for "hierarchial cursors and data shaping" on the index tab in MSDN.

That article shows you how to create a hierarchical recordset without any connection to a database.

viel Glück