GDBG Selected Dataraows

Hi,
How can I get all selected DATAROW in a GDBG ?

Thanks

Sim

3 Replies

AD Administrator Syncfusion Team October 16, 2006 08:51 AM UTC

Hi Sim,

Please refer to the below forum thread for more details.
http://www.syncfusion.com/support/Forums/message.aspx?MessageID=48607

Let me know if this works.

Regards,
Haneef


SK Simon Kakon October 16, 2006 09:51 AM UTC

Hi,
this code works but it doesn't resolve my problem.

In my case, the selected range is not contigous(ie row1, row12, row 25 ...).



>Hi Sim,

Please refer to the below forum thread for more details.
http://www.syncfusion.com/support/Forums/message.aspx?MessageID=48607

Let me know if this works.

Regards,
Haneef


AD Administrator Syncfusion Team October 16, 2006 01:27 PM UTC

Hi Sim,

Please try the below code snippet to get the selected rows in a Grid.

GridRangeInfoList list = this.gridDataBoundGrid1.Selections.GetSelectedRows(true,true);

foreach( GridRangeInfo info in list )
for(int i = info.Top ;i <= info.Bottom;i++)
Console.WriteLine("Item >>>>>>>" + arr[i]);

Regards,
Haneef

Loader.
Up arrow icon