GetSelectedCellAt

Top  Previous  Next

Gets the attributes of a selected cell for the grid in readonly mode - either the full gird or a sub grid.

[Visual Basic .NET]

Public Function GetSelectedCellAt(ByVal GridIndex As Integer,

                                                   ByVal Index As Integer,

                                                   ByRef SectionIndex As Integer,

                                                   ByRef RowIndex As Integer,

                                                   ByRef OrigRowIndex As Integer,

                                                   ByRef RowTag As Object,

                                                   ByRef ColumnIndex As Integer,

                                                   ByRef OrigColumnIndex As Integer) As Boolean

[C#]

public bool GetSelectedCellAt(int GridIndex,

                                            int Index,

                                            ref int SectionIndex,

                                            ref int RowIndex,

                                            ref int OrigRowIndex,

                                            ref object RowTag,

                                            ref int ColumnIndex,

                                            ref int OrigColumnIndex);

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.

Index

Specifies the index (0-based) of a selected cell, and this parameter's value must be between 0 and the return value of GetSelectedCellsCount() minus 1.

SectionIndex

Points to a variable holding the section's index value (0-based) of a selected cell. If the AllowSections is set to FALSE, this parameter becomes irrelevant.

RowIndex

Points to a variable holding the row's index value (0-based) of a selected cell.

OrigRowIndex

Points to a variable holding the row's original index value (0-based) of a selected cell.

RowTag

Points to a variable holding the row's tag value of a selected cell.

ColumnIndex

Points to a variable holding the column's index value (0-based) of a selected cell.

OrigColumnIndex

Points to a variable holding the column's original index value (0-based) of a selected cell.

 

 

Return Value:

If the operation is successful, it returns TRUE; otherwise it returns FALSE.