On mouse hover set the border for the row

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.
 
 
 

 

 

 

 

       

            

1 Reply

AS Athiram S Syncfusion Team 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


Loader.
Up arrow icon