ASPX.CS C# - How to change rows style in a GridView
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if ((( Convert.ToDateTime(((DataRowView)e.Row.DataItem)["field_expire"]) < DateTime.Now)
e.Row.Font.Strikeout = true;
}
}
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if ((( Convert.ToDateTime(((DataRowView)e.Row.DataItem)["field_expire"]) < DateTime.Now)
e.Row.Font.Strikeout = true;
}
}
{moscomment}
| < Prev | Next > |
|---|





