GridControl::GetIsSelected

 

Contents

Description

Returns whether a row is selected

Syntax

bool GetIsSelected( long Row )

Parameters

Row
[input] 0-offset row index

Return

true if the given row is selected, otherwise false

Examples

Example codes can be pasted to doExample() function in GridControl's examples to run

        m_GridCtrl.SetSelection(flexSelectionListBox);
        printf("There are %d non-fixed rows\n",m_GridCtrl.GetNumRows());
        m_GridCtrl.SetRowsIsSelected(1,3,true);
        for(int ii=m_GridCtrl.GetRowOffset();ii<m_GridCtrl.GetNumRows()+m_GridCtrl.GetRowOffset();ii++)
                m_GridCtrl.GetIsSelected(ii)?printf("row %d is selected\n",ii):printf("row %d is not selected\n",ii);

Remark

See Also

GridControl::SetIsSelected

header to Included

GridControl.h