|
-
Sep 9th, 2004, 02:32 PM
#1
Thread Starter
Addicted Member
how to save DATAGRID cells ?
Hi all gurus,
I am back to my rescue team.
My application gets data in datagrid from datatable.
I am getting confused how I can update, insert , delete data [datagrid rows] in datatable.
can you please show me whit example !
Thank you,
-Nanc
-
Sep 9th, 2004, 07:55 PM
#2
to update a datatable use a sqlcommandbuilder.
VB Code:
'da is an adapter
'dt is a datatable
dt.getchanges()
dim cb as new sqlcommandbuilder(da)
da.update(dt)
-
Sep 10th, 2004, 11:44 AM
#3
Thread Starter
Addicted Member
Thank you for your kind reply,
I tried as per you suggested, but it dosent change the data.
When I load data in datagrid from [let's say] table1, and edit the data in datagrid cells. When I click the Save button, it dosent give error. but data is not saved.
What could be the problem ?
Your help is sooooooooooo valuable, than you once again,
-Nanc
-
Sep 10th, 2004, 07:34 PM
#4
would you show us your code...in which it does not update the data?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|