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

Freeze header rows

Thread ID:





23043 Jan 4,2005 12:24 AM UTC Jan 4,2005 06:29 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 4, 2005 12:24 AM UTC

Hi, In my application i have 2 header rows and i want to freeze them. when i used following code m_PretestListingGrid.Model.Rows.FreezeRange(0,2); m_PretestListingGrid.Model.Rows.FreezeSelection(); it freezed the first 2 data rows. Can you tell how do we freeze the header rows?

Administrator [Syncfusion]
Replied On January 4, 2005 06:29 AM UTC

Row 0 is the default header and row 1 would be your second header row. So try this code: //2 header rows m_PretestListingGrid.Model.Rows.HeaderCount = 1; // freeze the top 2 rows (includes headers) m_PretestListingGrid.Model.Rows.FrozenCount = 1;


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