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 Color to Row in GridDataBoundGrid.

Thread ID:





104712 Aug 11,2012 07:47 AM UTC Aug 13,2012 06:20 AM UTC WinForms 1
Tags: GridControl
Varinder Rai
Asked On August 11, 2012 07:47 AM UTC

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....

Ragamathulla B [Syncfusion]
Replied On 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 =




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.


Let me know if you have any further concerns.


Ragamathullah B.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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