Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid Control Suggestions

Status
Not open for further replies.

RBSTR

Programmer
Nov 10, 2005
71
GB
Hi

I currently use a MSHFlexGrid with a recordset datasource.

It includes a column with a '+' sign that allows the user to drill down to child items under that row - a bit like subtotals in Excel

Something like this

| - | PARENTCODE1 | £100.00 |
| | CHILDCODE1A | £75.00 |
| + | PARENTCODE2 | £250.00 |
| - | PARENTCODE3 | £60.00 |
| | CHILDCODE3A | £55.00 |
| | CHILDCODE3B | £190.00 |

I have coded this through keypresses, setting the 'child' row's height to 0 to hide them when the user clicks '-' sign and then set row hieight back up again when user click '+'.

The user would now like further 'Excel' type functionality - enabling column filter by clicking on column headers to record a value to filter on.

I wonder whether there may be a better control I can use to enable such functionality more easily than MSHFlexGrid? VB6 would be my preference but I may also consider any VB.NET controls (outside the scope of this forum I appreciate), integrating these through the Interop forms toolkit.

Users don't need to be able to edit the cells in the grid just set/refresh the values as required on load.

Any suggestions would be appreciated.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top