Best way to color whole row from dataset value

Hi,

how do I do this the easiest way?

For example when I have one column with red, yello and green as values and want to color the whole row like this?

Thank you.

1 Reply

MS Mohanraj S Syncfusion Team August 24, 2012 12:19 PM UTC

Hi Matthias,

 

Thanks for using Syncfusion products.                 

 

Your requirement "Best way to color whole row from dataset value" can be achieved through c# code.

 

Please refer the following code snippets:

 

this.GridGroupingControl1.TableDescriptor.Columns[0].Appearance.AnyCell.BackColor = Color.Red;

this.GridGroupingControl1.TableDescriptor.Columns[1].Appearance.AnyCell.BackColor = Color.Yellow;

this.GridGroupingControl1.TableDescriptor.Columns[2].Appearance.AnyCell.BackColor = Color.Green;

 

Please let me know if you have any concerns.

 

Regards,

Mohanraj


Loader.
Up arrow icon