VB 6.0: Selecting Row 0 in MSHFlexGrid - TechRepublic
General discussion
February 14, 2003 at 02:47 AM
rod r.

VB 6.0: Selecting Row 0 in MSHFlexGrid

by rod r. . Updated 23 years, 4 months ago

I have an MSHFlexGrid with FixedRows = 1 (I use row 0 for column headers). When I click on any cell in row 0 VB reacts as if I clicked on row 1 (e.g., MyGrid.Row = 1) instead. If I change the value of FixedRows to 0, then clicking on any cell in row0 causes VB to react correctly that I clicked on row 0. How do I preserve FixedRows = 1 but ignore click events on cells in row 0?

I do have a tedious workaround in mind. Create another grid consisting of a single row of column headers and place it just above my existing grid. Set its FixedRows = 1. Then remove the row of column headers from my original grid. Then set the original grid’s FixedRows = 0. Yukh!

I’ve looked high and low on the internet but can’t find any reference to this problem as a bug. Any ideas?

This discussion is locked

All Comments