You will also need an if statement so not to select the column names when you have no data.
Below is a working example from my code
If (flxDelete.Row > 0) Then
'Select whole row on selection of one field
With flxDelete
' Row and Col properties must be set before RowSel and ColSel
.Col = 0 ' start selection in this column
.Row = .Row ' start selection in this row
.ColSel = .Cols - 1 ' end selection in this column
.RowSel = .Row ' end selection in this row
End With
End If
Main Topics
Browse All Topics





by: dechPosted on 2004-05-18 at 01:45:32ID: 11096162
With yourflexGrid
.Col = startColumnValue (0)
.Row = startRowValue (i)
.ColSel = endColumnValue (last column)
.RowSel = endRowValue (i)
End With
Notice the rows begin and end the same (your row number in both)
Start column is 0 and end at your last column
Put this in your gird on click event.