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!

MSFlexGrid question

Status
Not open for further replies.

savok

Technical User
Jan 11, 2001
303
AT
How do I make it highlight the row (dont know if its possible to hightlight the rows) in MSFLexGrid when the user clicks on a row and also how do I make it get the info out of the clicked row and column1.

I have an invisible column1 with the ID in it and need to know how to extract it.

Need to know the correct syntax, something like

Private Sub MSFlexGrid1_Click()
MsgBox (MSFlexGrid1.Selected(Row1,Col1)
End Sub


thanks!
 
found how to select the info out of columns, rows but still need to know how to highlight the row. Anyone know?

MSFlexGrid1.Row = MSFlexGrid1.RowSel
MSFlexGrid1.Col = 3
MsgBox (MSFlexGrid1.Text)

there is a highlight feature but i dont know how to use it

something like

on click
MSFlexGrid1.Highlight = Row?
MSFlexGrid1.Highlight.RowSelected

help! ;)
 
MSFlexGrid1.Row = MSFlexGrid1.RowSel
MSFlexGrid1.Col = 3
MsgBox (MSFlexGrid1.Text)
MSFlexGrid1.SetFocus
MSFlexGrid1.FocusRect = flexFocusHeavy

In the Form Load :

MSFlexGrid1.FocusRect = flexFocusHeavy
Eric De Decker
vbg.be@vbgroup.nl

Licence And Copy Protection AxtiveX.

Download Demo version on my Site:
Promotions before 02/28/2001 (free source codebook),visite my site
 
hi,Savok
if you have try the clip property of Grid control?
it return the content of the selected cells.

Jim
 
If you are trying to select a whole row when the user clicks on it, then you can just set one of the properties in the flexgrid. In the properties page there is a property SelectionMode, set it to "1 By Row" and it should select rows automatically. The only problem I have with it is the lack of ability to force them to only select one row at a time (they can still select multiple lines this way).

Hope this helps
 
Thanks Ferak that works but you are right they still can select multiple rows. I guess there is no perfect grid after all ;(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top