2.2.6.17.31 GridControl::GetIsSelected


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