Hello I use radgridview in my windows application A dataset serves as the datasource for the radcontrols gridview. I have to implement a checkbox column, the selection of which has to be made mutually exclusive. i.e at any given point of time there has to be only one checkbox selected.
For this i tried handling the event CellBeginEdit as below
for (int i = 0; i < m_odataSet.Tables[0].Rows.Count; i++)
{
m_odataSet.Tables[0].Rows[i][0] = false;
}
m_odataSet.Tables[0].Rows[selectedRowIndex][0] = true;
//bind the dataset to the gridview
m_radGridView.DataSource = m_odataSet.Tables[0];
Though this logic seems to work, it doesn't work 100%. There are sometimes a case where two checkboxes appear as selected.
Please point me where am going wrong and how i can correc the same.
Regards Learner.