how to set Color to Row in GridDataBoundGrid.

Hi friends....

I am new to this third party Control
i want t to know how to set Color to
Row in GridDataBoundGrid.
 
Thanks in Advance....

1 Reply

RB Ragamathulla B Syncfusion Team August 13, 2012 06:20 AM UTC

Hi VirenderRai,
 
Thank you for your interest in syncfusion products.
 
You can to set the row color by using the following prepareViewStyle event.
 

void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)

{

if (e.RowIndex == 8)

{

e.Style.BackColor =

Color.Red;                      

 

                    }

Please refer to our dashboard sample to the following path.

{Installed path}\Syncfusion\EssentialStudio\{Version}\Windows\GridDataBound.Windows\Samples\2.0\Appearance\Enhanced Visual Styles Demo\CS

Hope this will be helpful to your reference.

http://help.syncfusion.com/UG/User%20Interface/Windows%20Forms/Grid/Documents/3154styleproperties.htm

Let me know if you have any further concerns.

Regards,

Ragamathullah B.

 


Loader.
Up arrow icon