LS
Lingaraj S
Syncfusion Team
May 23, 2009 06:47 AM UTC
Hi Tanmay,
Thank you for your interest in Syncfusion product.
If you want to get the selected cells in GridDataBoundControl. Please try using GridRangeInfo properties to acheive this behaviour.
Please refer the code below:
GridRangeInfoList list;
if(this.gridDataBoundGrid1.Selections.GetSelectedRanges(out list, true))
{
foreach(GridRangeInfo range in list)
{
List range = new List();
for(int i = range.Top; i <= range.Bottom; i++)
for(int j= range.Left; j <= range.Right; j++)
range.Add(GridRangeInfo.Cell(i,j));
}
}
Please let me know if it helps.
Regards,
Lingaraj S.