How to make a row of FlexGrid selected programmitically?

goodmorningsky
07-24-2003, 01:40 AM
I set FlexGrid with select by row.
After I doing some job I want to a certain row be selected and be highlighted as same as when it selected by mouse.
How can I do this..?

FlexGrid1.row = x
doesn't work for this purpose.

Thank you.

Flyguy
07-27-2003, 11:01 AM
Also set the .Col, .ColSel and the .RowSel properties

Ega
07-27-2003, 10:07 PM
Where we can learn more about FlexGrid.
I want to be a programmer, but in my country, database-related programmer is more demanded.

Anis
07-27-2003, 10:39 PM
Where we can learn more about FlexGrid.
I want to be a programmer, but in my country, database-related programmer is more demanded.

In "Code Library" have a look at FlyGuy "Flexgrid Functions". You can also have a look at MSDN.

zak2zak
07-28-2003, 11:57 AM
May Be This will Help

Make Sure that in the property setting you set focusRect = 0-none
SelectionMode = 1-ByRow

In the function or sub routine place this

I use a command button as an example:

Depends on your column count eg: cols = 5

If command1_Click() event is triggered it select row no 2 and starts with the first col and select all 5 col

Private Sub Command1_Click()
With MSFlex
.Row = 2
.Col = 0
.ColSel = 5
End With
End Sub


enjoy coding...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum