I've a datagridview shown, I would like to change the font of that row to bold when a user hover over any cell on that row. I know I can use the rowenter and rowleave but some how it changed the font bold to the whole grid not just the row the mouse pointer was on.
private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e)
{
var dGV = sender as DataGridView;
if (dGV.Rows[e.RowIndex].Selected)
{
System.Windows.Forms.DataGridViewCellStyle boldStyle = new System.Windows.Forms.DataGridViewCellStyle();
boldStyle.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold);
dGV.Rows[e.RowIndex].DefaultCellStyle = boldStyle;
}
}