Hi This is the code for my Grid view As you know there is no RowCommand on RadGrid that why I need some help on how to convert all this code to RadGrid Code
- protected void gv_Movie_RowCommand(object sender, GridViewCommandEventArgs e)
- {
- //get the row number of the selected row
- // The error is at line 5
- int rowNo = int.Parse(e.CommandArgument.ToString());
- //get the selected row
- GridViewRow row = gv_movie.Rows[rowNo];
- //Get movie ID, which is on the 1st column of the gridview
- string movieID = row.Cells[0].Text;
- if (e.CommandName == "Select")
- {
- Response.Redirect("");
- }
- else if (e.CommandName == "Update")
- {
- Response.Redirect("");
- }
- }