-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Sandhu_Jas
Message 4 in Discussion
Hi
BalaJi
You got these
options :)
1) If you have a
Primary field in the table then just store the ID which is being edited and when
user does a update then check first if the record
exists(Check using stored ID) then update else insert as
a new record.
2) Use
DataGrid.Update method, I m sure if the Grid is working in the Bound mode, you
must have this event or method available but in this case
again if some other user has deleted the record from the
table in the meantime then Grid will be unable to do any updates and may hang
cos it will be unable to find the record
in the table. So first option is prefered.
Cheers
Jas Sandhu
----- Original Message -----
From:
BalajiKrishnan
To: BDOTNET
Sent: Tuesday, October 28, 2003 1:15
AM
Subject: Re: Urget - Could not find
solution.
New Message on BDOTNET
Urget -
Could not find solution.
Reply
Reply to Sender Recommend
Message 3 in
Discussion
From: BalajiKrishnan
Hi Jas,
First the Data from the excel file is taken and
displayed in a datagrid.
Now the Data should be inserted into the database
table.(The table already exist
in the database)
Before inserting the record I'll check whether the record
exist or not in the DB table,if exist the record will be updated
else inserted.
Now my requirment comes here
So I need to provide a edit option in the datagrid.
Once the particular record is edited i cannot update
the record in the DB Table.Bcos the record may or may not be
there in the db table.
So i need to update the records in the grid.......
So how can i do this..........
thanks in
advance.
Balaji
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]