To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Display Modes
Old Jun 28th, 2007, 07:53 PM   #1
nimay
New Member
 
Join Date: Jun 07
Posts: 7
nimay is an unknown quantity at this point (<10)
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
nimay is offline   Reply With Quote
Old Jun 28th, 2007, 08:58 PM   #2
nmadd
Frenzied Member
 
nmadd's Avatar
 
Join Date: Jun 07
Location: Colorado, U.S.A.
Posts: 1,676
nmadd is a jewel in the rough (200+)nmadd is a jewel in the rough (200+)nmadd is a jewel in the rough (200+)
Re: Datagrid problem

Hello,

I would probably start here to learn about data access in VB. Good luck!
nmadd is offline   Reply With Quote
Old Jun 28th, 2007, 09:57 PM   #3
nimay
New Member
 
Join Date: Jun 07
Posts: 7
nimay is an unknown quantity at this point (<10)
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
nimay is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:19 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.