473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Fetching data from a datagrid

Hi Guys,

I have a datagrid which is binded to dataset which is gettting data
from xml. Now i need to know if i edit or add data to the datagrid,
whats the best possible way to fetch it? .. i need to fetch the data
and put it in another xml file to update.

Thanks in adv guys

Jul 28 '06 #1
2 1356
Ameen,

When the user changes data in the datagrid, the data in the underlying
datatable is changed.

You should be able to use the datatable's or dataset's WriteXML method to
save the changed data to a file.

Kerry Moorman
"am************@gmail.com" wrote:
Hi Guys,

I have a datagrid which is binded to dataset which is gettting data
from xml. Now i need to know if i edit or add data to the datagrid,
whats the best possible way to fetch it? .. i need to fetch the data
and put it in another xml file to update.

Thanks in adv guys

Jul 28 '06 #2
Thanks Kerry for the reply. After readin it, i tried to do this

Dim mIOStream As Stream
mDScolumns.WriteXml(mIOStream)
Dim x As XmlDocument
x.Load(mIOStream)
MsgBox(x.InnerXml)

but got null exception :(

Kerry Moorman wrote:
Ameen,

When the user changes data in the datagrid, the data in the underlying
datatable is changed.

You should be able to use the datatable's or dataset's WriteXML method to
save the changed data to a file.

Kerry Moorman
"am************@gmail.com" wrote:
Hi Guys,

I have a datagrid which is binded to dataset which is gettting data
from xml. Now i need to know if i edit or add data to the datagrid,
whats the best possible way to fetch it? .. i need to fetch the data
and put it in another xml file to update.

Thanks in adv guys
Jul 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Srinivasan R | last post by:
Hi, I am trying to get asynchronous fetching of data from sql server database. I would like to show the progress of fetching records in GUI. Is there any simple/complex steps for the same in C#...
2
by: yatharth | last post by:
Hi Mike I have Datagrid and i am fetching data around about 1 million into it , i think which is not good deal this makes my system slow.Please tell the way so that i can fetch data in my...
0
by: Raghuram | last post by:
Hi, i have a datagrid displayed with the data (Customer Table) and there totally three feilds "ID, Name, Description". there are two text boxes where in i will be displaying the selected data....
1
by: deepdata | last post by:
Hi, I am trying to fetch data from db2 (express version) database by calling stored procedure. I have tried to use both cursor and for loop but still i am getting error. --======Start...
22
by: Sandman | last post by:
So, I have this content management system I've developed myself. The system has a solid community part where members can register and then participate in forums, write weblogs and a ton of other...
5
by: Bhavesh | last post by:
Hello genious people, I m trying to insert a LARGE text from Multiline Textbox into my table of sqlserver2000. I m using vs-2005. Please note that I dont want to store blob data From FILE...
1
by: Bhavesh | last post by:
Hi Bruce, Thanks For Reply. U were right, Needed to pass string , but also need to pass size of Data( instead of 16, passed actual length of data). So that worked for me & didn't get any...
4
by: LamSoft | last post by:
I've got some perfermance issue while fetching data from MSSQL I have a gridview, the datasource is a objectdatasource, and the objectdatasource is pointed to the dataset. The Select Query in...
2
by: SunshineInTheRain | last post by:
I'm trying to modify a long long code within a button click by make the insert/update/delete/select using the same transaction. Purpose is to make sure every operation can be rollback instead of some...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.