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 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/
