Skip to content

ShowRowNumber Method

Description

Shows a column that displays the row numbers.

Syntax

Public Sub ShowRowNumber( _
    ByVal bSet As Boolean _
)

Parameters

  • bSet: True to show the row number column, False to hide it.

Remarks

ShowRowNumber simply shows a new number column as the first column in the grid. This column will contain the row number in it. The number will correspond to the rows before any grouping and sorting are applied. Note that this column is not sortable.

StartRecOrRowNumber specifies whether numbers in the column get sorted (displays record number) or are "set in stone" and never move (displays row number).

StartRecOrRowNumber specifies the starting row number for the column.

Example

Private Sub mnuRowNumberColumn_Click()  
    mnuRowNumberColumn.Checked = Not mnuRowNumberColumn.Checked  

    If mnuRowNumberColumn.Checked Then  
        wndGridControl.CreateRowNumberColumn 30  
        wndGridControl.ShowRowNumber True  
    Else  
        wndGridControl.ShowRowNumber False  
    End If
End Sub

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.