You have declared
OnSelectedIndexChanged="RadGrid1_ItemCommand"
, but you are using
GridCommandEventArgs
.
protected void RadGrid1_ItemCommand(object source, Telerik.WebControls.GridCommandEventArgs e)
That should look like...
protected void RadGrid1_ItemCommand(object source, EventArgs e)
Again
if (e.CommandName == "RowClick")
would not work, because you will not click any field having a
CommandName
, rather you would select a Row.
So, I guess you should write another Event for
SelectedIndexChanged
and don't call the
ItemCommand
.