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.

DataBoundGrid Multi-RowSelect

Thread ID:





10658 Feb 9,2004 12:29 PM Feb 9,2004 03:43 PM Windows Forms 1
Tags: GridControl
Charles G. Edwards
Asked On February 9, 2004 12:29 PM

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 03:43 PM

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.

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.