I have read thru other forum responses to this question and have used the following code which i found in forum responses.
protected
void RiskIdentificationGrid_ItemDataBound(object source, GridItemEventArgs e) //GridItemEventArgs e)
{
if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
{
GridCommandItem cmditm = (GridCommandItem)e.Item;
LinkButton updateButton = (LinkButton)cmditm.FindControl("UpdateButton");
updateButton.Visible = false;
LinkButton lnkbtn1 = (LinkButton)cmditm.FindControl("InitInsertButton");
lnkbtn1.Visible = false;
Button btn1 = (Button)cmditm.FindControl("AddNewRecordButton");
btn1.Visible = false;
}
}
However, when I try to run, I get the following compile error...............
No overload for 'RiskIdentificationGrid_ItemDataBound' matches
delegate 'System.EventHandler'
I have spent many hours trying to figure out why this is happening. Am I missing something, and how can I resovle this.
I am using VS 2008, RadControls for ASP.NET AJAX 3.5 and C#.
Thanks for your help.