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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataBoundGrid Multi-RowSelect

Thread ID:





10658 Feb 9,2004 05:29 PM UTC Feb 9,2004 08:43 PM UTC WinForms 1
Tags: GridControl
Charles G. Edwards
Asked On February 9, 2004 05:29 PM UTC

I''m using a DataBoundGrid and I wish to get the selected row(s) via an index. The issue I''m having is when I select more than one row the GetSelectedRows returns only a count of one to the GridRangeInfoList object. The following is what I''m currently trying: m_SelectedWorkSets = new WorkSetCollection(); //rowList only ever gets one row. GridRangeInfoList rowList = outeGridDataBoundGrid.Selections.GetSelectedRows (true,true); for(int index = 0; index < rowList.Count ; index++) { WorkSet ws = new WorkSet(null); ws = m_DataSource.Import.WorkSetsInFile [index]; m_SelectedWorkSets.Add(ws); }

Administrator [Syncfusion]
Replied On February 9, 2004 08:43 PM UTC

GetSelectedRows returns GridRangeInfoList which is a list of GridRangeInfo objects. Here is a link to a kb article that discusses getting to the row/col indexes from selections. http://www.syncfusion.com/Support/article.aspx?id=564


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon