|
-
Jun 28th, 2007, 07:53 PM
#1
Thread Starter
New Member
Datagrid problem
Hi,
I have a datagrid which is bound to a dataset's datatable. my datasource is a xml file. I can display everything in the datagrid, i.e i can read from the xmlfile and write to xml file, but the problem is , if i change a cell value in datagrid, how can i reflect the changes back to dataset. I want my dataset to be updated everytime the user leaves the datagrid.
Can anyone help me out with this
-
Jun 28th, 2007, 08:58 PM
#2
Re: Datagrid problem
Hello,
I would probably start here to learn about data access in VB. Good luck!
-
Jun 28th, 2007, 09:57 PM
#3
Thread Starter
New Member
Re: Datagrid problem
Buddy,
yeh but I will explain my problem in detail
Private Sub dgIncome_Leave(sender, e)
' The code to save changes in datagrid dgIncome as well as new dataset ds1
'I wrote
dgIncome.update()
ds1.Income.AcceptChanges()
ds1.WriteXml("c:\n.xml")
dgIncome.Datasource = ds1.Tables("Income")
End sub
I don't know why my xml file is not populated with the datagrid
could you plz explainme in detail
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
|