RowDividerStyle Property Example

This example toggles through the different row line styles when you click a command button.

Private Sub ChangeStyle_Click ()
   If DataGrid1.RowDividerStyle < 5 Then
      DataGrid1.RowDividerStyle = DataGrid1.RowDividerStyle + 1
   Else
      DataGrid1.RowDividerStyle = 0
   End If
End Sub