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

change backcolor

Thread ID:





63720 Jul 9,2007 07:16 AM UTC Jul 9,2007 06:08 PM UTC WinForms 1
Tags: GridControl
Asked On July 9, 2007 07:16 AM UTC


I'm trying to change the backcolor of the columns that are frozen. Is there an easy way to read out a collection of frozen columns?

I'm also thinking about changing the backcolor of the header of the frozen columns. Is there an easy way to accomplish this? Thanks!

haneefm [Syncfusion]
Replied On July 9, 2007 06:08 PM UTC

Hi Code12345,

You can handle the PrepareViewStyleInfo event to set the backcolor of the cell in a grid. Below is a code snippet

private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
GridDataBoundGrid _grid = sender as GridDataBoundGrid;
if( e.ColIndex > 0 && e.ColIndex <= _grid.Model.Cols.FrozenCount)
e.Style.Themed = false;
e.Style.BackColor = Color.Red;

Best regards,


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