if(e.Row.RowType == DataControlRowType.DataRow) { DateTime myDate = (DateTime)DataBinder.Eval(e.Row.DataItem, "DateProperty"); if(DateTime.Now.Substract(myDate).TotalHours>24) { //error message... } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)