pa1asp7 Posted March 22, 2009 Posted March 22, 2009 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.