Refer -
GridView.RowCommand Event[
^].
You should pass only two
Event Arguments not three. Store the
RowIndex
in
CommandArgument
, so that you can get the Current Row. Explained below.
void GridView1_RowCommand(Object sender, GridViewCommandEventArgs e)
{
if(e.CommandName == "click")
{
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow row = GridView1.Rows[index];
}
}