I know there is a way to select an entire row in a flex grid when you click on just one cell of that row. it is the selectionMode set to 1 (by row). Is there a way i could select an entire row through code though?
Printable View
I know there is a way to select an entire row in a flex grid when you click on just one cell of that row. it is the selectionMode set to 1 (by row). Is there a way i could select an entire row through code though?
I think the selection mode needs to be by row first,
then do this.
flexgrid.row = [The row you want selected]
flexgrid.col = 0
flexgrid.colsel = flexgrid.cols-1
Try that.
VB Code:
Private Sub Command1_Click() With MSFlexGrid1 .Row = 2 ' any row .Col = 0 .ColSel = .Cols - 1 End With End Sub