I am getting below errors while i passed the argument of linkbutton of gridview GridviewCommanEventArgs e?what is mean of it...
and it marked the line below to the [e.RowIndex]; ?
whether the Rowindex can be accept or not for linkbutton tags?
Error 2 No overload for 'GridView1_SelectedIndexChanged' matches delegate 'System.EventHandler' ;
Error 1 'System.EventArgs' does not contain a definition for 'RowIndex' and no extension method 'RowIndex' accepting a first argument of type 'System.EventArgs' could be found (are you missing a using directive or an assembly reference?)
VulpesPosted Jan 29, 2015, 11:02 AM
However, the GridView.SelectedIndexChanging handler exposes a GridViewSelectEventsArgs which has a NewSelectedIndex property. This returns the index of the row selected by the user.
There's an example here on MSDN which contrasts the use of these two handlers:
https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.selectedindexchanged%28v=vs.110%29.aspx