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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSHFlexGrid - Row Selection-No RESPONSE-Help urgently

Status
Not open for further replies.

bzac

Programmer
Dec 20, 2000
55
US
When the user slect a row in an MSHFlexGrid which has been populated with an ADO Recordset, I am trapping the selected row by mshflexgrid1.mouserow. The problem is when the user clicks on a row, the 'mouserow' will return -1 row number. But once after pressing the scroll button or scrolled it is returning the correct row number on mouseclick. If adding one on mouserow after scrolling it will make problems. This is the third time I am posting and nobody is responding.

Please help me, I am about to test my application
 
I regret that I can't help you. But, in my case if I can't solve the problem I will decide to find another approach. Why don't you try too! VB has bunch of controls than that.
 
I am not sure I understand exactly what you are needing to return as a value, but try MSFlexgrid1.row, this will return the row number clicked in the grid. I use this quite often as a way to tell my code where the user is at in the recordset.
 
i test in my program, the MSHFlexGrid1.mouserow return the correct row number.
check your program again.
Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top