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

MSHFlexGrid - How to get values of selected row

Status
Not open for further replies.

123jon

Programmer
Jan 11, 2003
14
US
After loading the records in MSHFlexGrid. I need to display all the fields of the record/row that the user double clicked (selected) in the MSHFlexGrid.

I notice that the value of field that was doubleclicked will be assigned to MSHFlexGrid.Text. But I want the values of the other fields also.

Any suggestions?
Thank You.
 
You will probably need to get the .row property and then loop through all the columns individually to get all of the data. Something similar to what is below.

for i=0 to msflexgrid1.cols-1
<arrayvariable>(i)=msflexgrid1.textmatrix(msflexgrid1.row,i)
next i Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top