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

How to set the background color of unfilled area in Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

43993 May 10,2006 02:29 PM UTC May 10,2006 02:44 PM UTC WinForms 2
loading
Tags: GridControl
Umesh Mahajan
Asked On May 10, 2006 02:29 PM UTC

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 02:35 PM UTC

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 02:44 PM UTC

That works. Thanks.

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

;