Re: GridView update problem
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
- Date: Thu, 10 Jul 2008 03:16:53 GMT
Thanks for your reply SAL,
That seems unexpected since the postback should work as long as the update
button is put correctly(via edit/update command field). Is it reproable via
some simplified data source? You can send me a simplified copy so that I
can also test it on my side. My email is
"stcheng" + @ + "microsoft.com"
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
--------------------
From: "SAL" <SAL@xxxxxxxxxxxxx><e5Of00X4IHA.4688@xxxxxxxxxxxxxxxxxxxxxx>
References: <OhWH06T4IHA.2580@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: GridView update problem
Date: Wed, 9 Jul 2008 09:52:04 -0700
event
Hi Steven. As far as I can tell, it's not even doing a postback. If an
was firing, I could at least manually update the record. It would be niceto
have it update itself however via two-way binding.a
I've implemented two way binding via an objectdatasource which is bound to
business object and the business object is using a table adapter that wasor
created using the designer.
S
"Steven Cheng [MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:e5Of00X4IHA.4688@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi SAL,
From your description, you're encountering some problem to get the update
function in GridView to work, correct?
As for the Updating not work, do you means if you click "Update" button,
the page doesn't postback or the page does postback but the database
updating commands are not taking effect?
Also, how do you implement the edit/update in GridView, are you directly
use SqlDataSource's two-way databinding to automatically perform update
enteredyou manually use code to update the database (when updating event fires)?
Generally, for such issue, I would first register the "RowUpdating" event
of the Gridview(ensure it get fired) and then check all the parameters
(via
the event Argument parameter) to see whether the column data user
have been supplied correctly in the parameter collection:
===================
protected void GridView1_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
//e.Keys;
//e.NewValues;
// e.OldValues;
..................
======================
If there is anything I omit, please feel free to let me know.
Sincerely,
.
- Follow-Ups:
- Re: GridView update problem
- From: SAL
- Re: GridView update problem
- References:
- GridView update problem
- From: SAL
- RE: GridView update problem
- From: Steven Cheng [MSFT]
- Re: GridView update problem
- From: SAL
- GridView update problem
- Prev by Date: Re: Specifying precompilation target directory on the command line
- Next by Date: Re: Accessing Wizard Next/Prev buttons
- Previous by thread: Re: GridView update problem
- Next by thread: Re: GridView update problem
- Index(es):