file...
// insert the "data" node at the end of the xml file.
"M. Matsuda" wrote:
> I might have some sample to help. If you don't mind can you tell me where to
> send sample code?
>
> "Henok Girma" wrote:
>
> > ok, now we are getting somewhere.. i understand about the DataSet and the
> > bindingsource etc, but since i don't use a dataset to populate my
> > DataGridView, i cannot extract the data to xml with the WriteXML method.. so
> > what i was looking for was a way to extract a DataSet out of the
> > DataGridView eventough it was not bounded, i know this doesn't makse sense..
> > let me explain a bit..
> >
> > I create rows programatically, say after 10 rows have been created, i want
> > to save that information to a file so that next time my application runs,
> > the datagridview is populated again.. i think from the looks of it, there is
> > no easy way to do it than to iterate and write each row information to an
> > xml file and read it back to re-create the rows when the application starts
> > up..
> >
> > i was thinking there was an easy method to export/serialize the data out a
> > datagridview..
> >
> > any suggestions?
> >
> >
> >
> > "Kevin Spencer" <kevin@DIESPAMMERSDIEtakempis.com> wrote in message
> > news:%23nZqXArRGHA.2176@TK2MSFTNGP10.phx.gbl...
> > >A DataGridView is a user interface component, not a data component. It is
> > >bound to a DataSet by means of a BindingSource, which relates the data in a
> > >particular table or view in the DataSet to the DataGridView. The
> > >DataGridView then uses the BindingSource to display the data in a
> > >meaningful way. Therefore, you don't want to serialize a DataGridView at
> > >all; you want to serialize the data that is contained (or rather
> > >"displayed") in it. This would entail serializing the DataSet.
> > >
> > > As to why you were "not able to get it," that is the crux of the problem,
> > > and cannot be answered until you describe exactly what you tried, and what
> > > the results were.
> > >
> > > --
> > > HTH,
> > >
> > > Kevin Spencer
> > > Microsoft MVP
> > > .Net Developer
> > >
> > > Presuming that God is "only an idea" -
> > > Ideas exist.
> > > Therefore, God exists.
> > >
> > > "Henok Girma" <nospam@spamfree.com> wrote in message
> > > news:SWeRf.819602$x96.730159@attbi_s72...
> > >> anyone?
> > >>
> > >> "Henok Girma" <nospam@spamfree.com> wrote in message
> > >> news:Qd5Rf.817925$x96.97819@attbi_s72...
> > >>> What i wanted to store was the value of those items, while i can iterate
> > >>> create line by line the xml file, i would much rather use the dataset
> > >>> and WriteXml method, but for some reason i was not able to do so for an
> > >>> unbound DataGridView. the user creates the rows and sets the values,
> > >>> then when they click save, i want to output all the data to an XML file,
> > >>> idealy, i want to extract the DataSet of the DataGridView to save it to
> > >>> XML using the WriteXML method mentioned, but i was not able to get it.
> > >>>
> > >>> Do i make sense?
> > >>>
> > >>> "A.Kahtava" <kahtava@gmail.com> wrote in message
> > >>> news:1142209639.688041.206710@z34g2000cwc.googlegroups.com...
> > >>>> Do you really want to save a TextBox, ComboBox and data to an XML file?
> > >>>>
> > >>>> Generally DataGrids are displaying data from a DataSet, you can save
> > >>>> the data within a DataSet through the DataSet.WriteXml() method.
> > >>>>
> > >>>> The DataSet Class:
> > >>>>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataDataSetClassTopic.asp
> > >>>>
> > >>>
> > >>>
> > >>
> > >>
> > >
> > >
> >
> >