How to set the background color of unfilled area in Grid

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 ?

2 Replies

AD Administrator Syncfusion Team 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


UM Umesh Mahajan May 10, 2006 02:44 PM UTC

That works. Thanks.

Loader.
Up arrow icon