Click here to Skip to main content
16,019,983 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to get value of boundfield in gridview RowUpdating event using the following code
C#
string str1= Gd.Rows[e.RowIndex].Cells[5].Text;

but this code always returns null value.
Posted
Updated 3-Dec-10 20:16pm
v2

i guess u have to typecast the value from textbox
C#
string dtr = ((TextBox)gvrw.Cells[5].Controls[0]).Text;
 
Share this answer
 
Incorrect format....Try this

GridView.RowDataBound Event[^]
 
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