SelectCell

Top  Previous  Next

Sets the status for a specific cell for the grid in readonly mode - either selected or not selected.

[Visual Basic .NET]

Public Function SelectCell(ByVal GridIndex As Integer,

                                       ByVal SectionIndex As Integer,

                                       ByVal RowIndex As Integer,

                                       ByVal ColumnIndex As Integer,

                                       ByVal IsSelected As Boolean) As Boolean

[C#]

public bool SelectCell(int GridIndex,

                                int SectionIndex,

                                int RowIndex,

                                int ColumnIndex,

                                bool IsSelected);

Parameters

GridIndex

Specifies the grid index - either the full gird or a sub grid. -1 indicates the full grid; for a sub grid, the parameter's value must be between 0 and the return value of GetTotalSubGrids() minus 1.

SectionIndex

Specifies the index (0-based) of the section in which the cell resides. If the AllowSections is set to FALSE, this parameter becomes irrelevant.

RowIndex

Specifies the 0-based index of the row in which the cell resides.

ColumnIndex

Specifies the 0-based index of the column in which the cell resides. If the SelectRow is set to TRUE, this parameter becomes irrelevant.

IsSelected

Indicates the status of the cell - either TRUE (selected) or FALSE (not selected).

 

 

Return Value:

The return value is TRUE if the action succeeds; otherwise it is FALSE.

 

Remarks

The sync cell in the associated grid is automatically affected.