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.

How to set the background color of unfilled area in Grid

Thread ID:





43993 May 10,2006 10:29 AM May 10,2006 10:44 AM Windows Forms 2
Tags: GridControl
Umesh Mahajan
Asked On May 10, 2006 10:29 AM

I have a grid on a UserControl and am trying to set the background color of the area that is unfilled (i.e. no rows). I tried setting Control.BackColor and it sets the background control of the UserControl that is not occupied by the grid. GridControl.Backcolor sets the background control of the Grid Rows. However, it still leaves a large Grid area that doesn''t have any rows. Is there any property to set the backcolor of unfilled area ?

Administrator [Syncfusion]
Replied On May 10, 2006 10:35 AM

Hi UMahajan, Could you try this code to set Backcolor of the unfilled area in a Grid.Here is a code snippet. this.Grid.Properties.BackgroundColor = Color.Red; Best Regards, Haneef

Umesh Mahajan
Replied On May 10, 2006 10:44 AM

That works. Thanks.


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.