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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do i highlight a row in Grid Control Virtual grid.

Thread ID:

Created:

Updated:

Platform:

Replies:

50995 Oct 25,2006 04:10 PM UTC Oct 26,2006 05:59 PM UTC WinForms 2
loading
Tags: GridControl
Vijayarajan Govindarajan
Asked On October 25, 2006 04:10 PM UTC

On the cell click event the entire row needs to be highlighted. How can this be done?

Administrator [Syncfusion]
Replied On October 26, 2006 04:50 AM UTC

Hi Thales,

You can handle the PrepareViewStyleInfo event of the grid and set the e.Style.BackColor to some new color to want to display. Below is a code snippet.

//PrepareViewStyleInfo event
GridCurrentCell cc = this.grid.CurrentCell;
if( cc.RowIndex == e.RowIndex)
e.Style.BackColor = Color.AliceBlue;

Best Regards,
Haneef

Vijayarajan Govindarajan
Replied On October 26, 2006 05:59 PM UTC

Hi Haneef,

It works. Thank You.

>Hi Thales,

You can handle the PrepareViewStyleInfo event of the grid and set the e.Style.BackColor to some new color to want to display. Below is a code snippet.

//PrepareViewStyleInfo event
GridCurrentCell cc = this.grid.CurrentCell;
if( cc.RowIndex == e.RowIndex)
e.Style.BackColor = Color.AliceBlue;

Best Regards,
Haneef

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

;