TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ivan Saldanha
NA
1
3k
Updating Gridview
Jun 15 2009 12:14 PM
I have a simple page where I am trying to update some elements of a row. I am able to get to the point when I press the EDIT button, the gridview_updating event is fired and I have place my custom sql to update the table using the values entered on that row. The problem is I am not able to access the NEW values enetered on the screen. This is a simple gridview with no templates. I am dynamically generating the sql to display the data on screen. I am able to access the old values when I place the following code in gridview1_rowUpdating event handler.
f1 = ((
TextBox
)GridView1.Rows[e.RowIndex].Cells[1].Controls[0]).Text;
f2 = ((
TextBox
)GridView1.Rows[e.RowIndex].Cells[2].Controls[0]).Text;
f3 = ((
TextBox
)GridView1.Rows[e.RowIndex].Cells[3].Controls[0]).Text;
I was expecting it to be straight forward to get the new values eneterd on the screen. I am relatively new to ASP so could someone please help me in providing a simple way in retrieving the new values in the edit row.
Thanks
Ivan
Reply
Answers (
0
)
'Microsoft.ReportViewer.WebForms
How to apply css to content page