Yes I have all of that.

But after UPDATE occur, the datagrid is rebinded with
the updated info. You see the record plus the EDIT
buttoncolumn again. BUT if the user decides to click
on EDIT again, no record is returned and the datagrid
becomes empty.

Is there any way to go about that?

--- Karthick Kumar <[EMAIL PROTECTED]>
wrote:

> Hi,
> 
> Follow this:
> 
> 1. Bind the datagrid with your SQL Select query and
> have in databound(ed)
> [make sure the values are displaye din the datagrid]
> 
> 2. Include the Edit, Update, Cancel template column
> in your datagrid
> 
> 3. Write the Edit, update and Cancel event handlers
> 
> 4. Once the Update event is fired, bind the datagrid
> once again to show the
> updated values
> 
> If you still, can't resolve then you got to post
> your datagrid and update
> event handler code
> 
> Hth,
> Karthick
> 
> 
> -----Original Message-----
> From: Anna Leon [mailto:[EMAIL PROTECTED] 
> Sent: 01 October 2004 14:43
> To: [EMAIL PROTECTED]
> Subject: RE: [AspNetAnyQuestionIsOk] Datagrid Edit
> 
> Actually, when a user edits/updates a record, the
> datagrid is rebinded with the updated info. But if
> the
> user forgot something and clicks EDIT again, the
> datagrid becomes empty (no record is returned). How
> to
> solve that?
> 
> --- Karthick Kumar <[EMAIL PROTECTED]>
> wrote:
> 
> > Use the DataKeyField property in your Data Grid to
> > get the UID (hopefully
> > you are getting it in your select query from the
> > DB). Also, don't forget to
> > bind your Data Grid in the code, once the editing
> is
> > done.
> > 
> > Also, follow this link to get more info on Editing
> > Data Grids:
> > http://url123.com/nhkwp
> > 
> > Hth,
> > Karthick
> > 
> > 
> > -----Original Message-----
> > From: sas0riza [mailto:[EMAIL PROTECTED] 
> > Sent: 01 October 2004 02:32
> > To: [EMAIL PROTECTED]
> > Subject: [AspNetAnyQuestionIsOk] Datagrid Edit
> > 
> > 
> > I have a search form, where user enters in last
> name
> > and first name. 
> > The record is then returned to the datagrid.
> > 
> > When the user actually EDITS the last name and/or
> > first name, and 
> > then hit UPDATE, the updated row does not get
> > returned to the 
> > datagrid because the function is still passing in
> > the old parameters 
> > (whatever was originally entered into last
> > name/first name).
> > 
> > I would like to obtain the UID of whatever row the
> > user clicks EDIT 
> > on, and use that as my parameter in my functions.
> > 
> > How should I go about it?
> > 
> > Thanks.
> > 
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
>               
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 



                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to