3
Reply

Highlight Datarow in gridview

Vignesh Kumar

Vignesh Kumar

Mar 12 2014 6:14 AM
1.4k
Hi,
How can I highlight the datarow dr values to bold in my gridview.
DataRow dr = dtReport.NewRow();
dr["Total"] = Convert.ToDecimal(dt.Rows[0][0].ToString());
dtReport.Rows.Add(dr);

protected void Finance_RowDataBound(object sender, GridViewRowEventArgs e)
  {
  if (e.Row.RowType == DataControlRowType.DataRow)
  {
  DataRow dr = ((DataRowView)e.Row.DataItem).Row; 
  } 
  }


Answers (3)