Click here to Skip to main content
15,921,210 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this my code but does not retrieve value

Dim amount As String = CType(GridView1.Rows(i).FindControl("txtamonut"), TextBox).Text



help me...................
Posted

Try with specific cell of Textbox using row after particular cell index

Dim amount As String = CType(GridView1.Rows(i).cell(1).FindControl("txtamonut"), TextBox).Text
 
Share this answer
 
try this:-
Dim amount As String =DirectCast(GridView1.Rows(i).FindControl("txtamonut"), TextBox).Text
 
Share this answer
 

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