DataGrid - Update Command Event Problem

M

Mr Newbie

I have a DataGrid with an Edit command column. I have three other preceeding
columns in the Grid Index, LastName, Firstname.

1.) I Click the Edit link and the row selected becomes editable with three
textboxes, my data is 1 Smith John alomngside is now the Update
link.

2.) I Edit the First Name, now my Data is 1 Smith Mike

3.) I Press the update link

In the Update event the data returned is the original data 1 Smith John,
and NOT 1 Smith Mike.


Whats wrong ??
 
M

Mr Newbie

Actually I have found the problem. This seems to be because I was binding
the Grid to the Dataset each time the page load event fired rather than only
the first time.

This begs the question why ?, I Suppose when one rebinds the control all
viewstate information returned on postback for the control is lost right ?

Can someone confirm this ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top