LS
Lingaraj S
Syncfusion Team
May 7, 2009 03:37 PM UTC
HiDeepa,
Thank you for your interest in Syncfusion product.
The GridControl selection rows are stored as a Ranges. If you want the selected row in GridControl, please try using GetSelectedRanges method to achieve this behaviour.
Please refer the code below:
GridRangeInfoList gridRangeInfoList = null;
this.grid.Model.Selections.GetSelectedRanges(out gridRangeInfoList, true);
GridRangeInfo info = gridRangeInfoList.ActiveRange;
if (info != null && info.IsRows)
{
MessageBox.Show("Top " + info.Top.ToString() + " Bottom " + info.Bottom.ToString());
}
Let me know if you have any queries.
Regards,
Lingaraj S.