How do I make the datagridview line text in bold when I pick a row?
The below code will make the font under Bold style for the selected row. "Total" is the last row check in my code
protected void gvRow_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[rowIndex].Text == "Total")
{
e.Row.Font.Bold = true;
}
}
}