Click here to Skip to main content
15,936,850 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a nested gridview , i want to get the desired values from the cell of the row of parent gridview when the button in the child grid is clicked.
C#
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
   {
     
      rowindex = Convert.ToInt16(e.CommandArgument.ToString());

   }


it's giving me error,input string not in correct fromat.
Posted

1 solution

Error message clearly says the thing. I'm sure the value of e.CommandArgument is non-numeric non-integer
Error: Input string was not in a correct format[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900