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

Hiding rows

Thread ID:





31883 Jul 18,2005 06:24 AM UTC Jul 18,2005 08:57 AM UTC WinForms 1
Tags: GridControl
Anna Srinivasan
Asked On July 18, 2005 06:24 AM UTC

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 08:57 AM UTC

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.

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