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

Highlight a selected row in MSHFlexGrid

Status
Not open for further replies.

stnkyminky

Programmer
Oct 15, 2001
476
US
When a selects a row I am extracting the data from that row. Once I complete getting my data the row is no longer highlighted. Can anyone help? Thanks in advance.




Scott
Programmer Analyst
 
Not sure why not still highlighted, but a thought. Does your grid still have the focus or has it lost it?
Mavors
Cincinnati, Ohio
 
Here is my code. There may be a better way to do this but I dont know how.

ElseIf msgJobs.Col = 0 Then

strJob = msgJobs.Text

msgJobs.Col = 1
strBdl = msgJobs.Text

msgJobs.Col = 2
strSO = msgJobs.Text

msgJobs.Col = 3
strDescr1 = msgJobs.Text

msgJobs.Col = 4
strDescr2 = msgJobs.Text

msgJobs.Col = 5
intQty = msgJobs.Text Scott
Programmer Analyst
 
In the properties of the flexgrid, set the HiLight = 1 (Always stay highlighted - even it loses focus) and use TextMatrix method to retrieve your values:

strJob = msgjobs.TextMatrix(msgjobs.Row, 0)
strBdl = msgJobs.TextMatrix(msgjobs.Row, 1)
strSO = msgJobs.TextMatrix(msgjobs.Row, 2)
strDescr1 = msgJobs.TextMatrix(msgjobs.Row, 3)
strDescr2 = msgJobs.TextMatrix(msgjobs.Row, 4)
intQty = msgJobs.TextMatrix(msgjobs.Row, 0)


Mark
 
Worked great...thanks for the reply.

Scott
Programmer Analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top