This is for my code.
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (Convert.ToDateTime(DataBinder.Eval(e.Row.DataItem, "target")) < DateTime.Now)
{
e.Row.BackColor = System.Drawing.Color.LightCoral;
e.Row.ForeColor = System.Drawing.Color.Yellow;
}
}
This post has been edited by Atli: 08 May 2012 - 06:31 AM
Reason for edit:: Please use [code] tags when posting code.

New Topic/Question
Reply



MultiQuote



|