Example
The following example selects row 5 of the sheet.
C++
// Select row 5 if the current selection is not row 5
if(m_Spread.GetSelModeIndex( ) != 5)
m_Spread.SetSelModeIndex(5);
Visual Basic
' Select row 5 if the current selection is not row 5
If fpSpread1.SelModeIndex <> 5 Then
fpSpread1.SelModeIndex = 5
End If