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.

Hiding rows

Thread ID:





31883 Jul 18,2005 02:24 AM Jul 18,2005 04:57 AM Windows Forms 1
Tags: GridControl
Anna Srinivasan
Asked On July 18, 2005 02:24 AM

Hi, In griddataboundcontrol, Selected rows i have to hide from diaplay. How do i do that..? Send me code sample. grid.Model.RowHeights[rowIndex] = 0; This will work, but i want know how do i capture that selected rowindex. If it is single row ..? Multiple rows how..? Help me...?

Administrator [Syncfusion]
Replied On July 18, 2005 04:57 AM

You use this.gridDataBoundGrid1.Selections.GetSelectedRows to get a GridRangeInfoList object holding any selected rows. Then you can iterate through this collection.
GridRangeInfoList ranges = this.grid.Selections.GetSelectedRows(true, false);
foreach(GridRangeInfo range in ranges)
	for(int i = range.Top; i <= range.Bottom; ++i)
		Console.WriteLine("row {0} selected", i);


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.