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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hiding rows

Thread ID:

Created:

Updated:

Platform:

Replies:

31883 Jul 18,2005 06:24 AM UTC Jul 18,2005 08:57 AM UTC WinForms 1
loading
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);
        }
}	

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.

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

;