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

On mouse hover set the border for the row

Thread ID:

Created:

Updated:

Platform:

Replies:

106264 Dec 20,2012 03:37 PM UTC Dec 27,2012 11:11 AM UTC Windows Forms 1
loading
Tags: Grouping
Gaukhar Massabayeva
Asked On December 20, 2012 03:37 PM UTC

I would like on mouse hover to set that row's border to bold so that it stands out and signifies the hover over.
 
void TableControl_CellMouseHoverLeave(object sender, GridCellMouseEventArgs e)
{
           Clear the set border
}
 void TableControl_CellMouseHoverEnter(object sender, GridCellMouseEventArgs e)
{
            GridControlBase grid = this.TableControl.CurrentCell.Grid;
            if (e.RowIndex != grid.Model.Rows.HeaderCount && e.ColIndex > grid.Model.Cols.HeaderCount && e.RowIndex >= grid.TopRowIndex)
            {
                    set the border to bold at whatever row the mouse cursor currently at
            }
        }
 
I hope this makes sense. Thank you for all the help in advance.
 
 
 

 

 

 

 

       

            

Athiram S [Syncfusion]
Replied On December 27, 2012 11:11 AM UTC

Hi Gaukar,

Thanks for your interest in Syncfusion Products.

You can change the border using the following code:

this.gridControl1.RowStyles[1].Borders.All = new GridBorder(GridBorderStyle.Solid, Color.Red,GridBorderWeight.Thin);

Please refer to the following link for details:

http://help.syncfusion.com/ug/windows%20forms/grid/default.htm#!Documents/howtochangethelookofacellsborder.htm

please let me know if you have any concerns.

Regards,

Athiram S


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

;