We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG Selected Dataraows

Thread ID:

Created:

Updated:

Platform:

Replies:

50614 Oct 16,2006 08:11 AM UTC Oct 16,2006 01:27 PM UTC WinForms 3
loading
Tags: GridControl
Simon Kakon
Asked On October 16, 2006 08:11 AM UTC

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

Thanks

Sim

Administrator [Syncfusion]
Replied On 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

Simon Kakon
Replied On 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

Administrator [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;