Hi
How to call the event ItemDataBound
this is my event
protected void grdReport3_ItemDataBound(object source, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
DataRowView rv = (DataRowView)e.Item.DataItem;
DateTime iap = Convert.ToDateTime(rv.Row.ItemArray[3]);
DateTime iaa = Convert.ToDateTime(rv.Row.ItemArray[4]);
if (iaa > iap)
{
e.Item.BackColor = System.Drawing.Color.Red;
}
}
}
i have included in source code fro datagrid(its not getting through intellisense)
OnItemDataBound="grdReport3_ItemDataBound"
Please help how to fir this event.
Thanks in advance
pavan
How to call the event ItemDataBound
this is my event
protected void grdReport3_ItemDataBound(object source, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
DataRowView rv = (DataRowView)e.Item.DataItem;
DateTime iap = Convert.ToDateTime(rv.Row.ItemArray[3]);
DateTime iaa = Convert.ToDateTime(rv.Row.ItemArray[4]);
if (iaa > iap)
{
e.Item.BackColor = System.Drawing.Color.Red;
}
}
}
i have included in source code fro datagrid(its not getting through intellisense)
OnItemDataBound="grdReport3_ItemDataBound"
Please help how to fir this event.
Thanks in advance
pavan