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.
Unfortunately, activation email could not send to your email. Please try again.

GDBG Selected Dataraows

Thread ID:

Created:

Updated:

Platform:

Replies:

50614 Oct 16,2006 04:11 AM Oct 16,2006 09:27 AM Windows Forms 3
loading
Tags: GridControl
Simon Kakon
Asked On October 16, 2006 04:11 AM

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

Thanks

Sim

Administrator [Syncfusion]
Replied On October 16, 2006 04:51 AM

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 05:51 AM

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 09:27 AM

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.

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.

;