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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

50995 Oct 25,2006 12:10 PM Oct 26,2006 01:59 PM Windows Forms 2
loading
Tags: GridControl
Vijayarajan Govindarajan
Asked On October 25, 2006 12:10 PM

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

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

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 01:59 PM

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.

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.

;