| Change rows style in a GridView |
|
|
|
|
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; } }
Only registered users can write comments. Powered by AkoComment 2.0.3! |
||
| Last Updated ( Friday, 27 October 2006 ) | ||
| < Prev | Next > |
|---|




Articles 



