I need your help on this,
I have a datagridview with 3 columns, text, image,image. the 2 image columns both contain embedded icons. any example on how to write/read this datagridview to an xml or mdb ? appreciated.
I need your help on this,
I have a datagridview with 3 columns, text, image,image. the 2 image columns both contain embedded icons. any example on how to write/read this datagridview to an xml or mdb ? appreciated.
First, fill those data into a dataset:
Dim ds As DataSet = DirectCast(DirectCast(Dgv, DataGridView).DataSource, DataSet)
To XML:
ds.WriteXml("Your path" + "\your xmlname".xml)
To Mdf? I'm not sure, but, did you want to insert those data into a database? You should have a database, a table, a connection, an adapter, a query... My idea: Please search FAQ for "insert data into Access database, VB.net".
Hey, Thanks for this, I have tried it already. my problem is with the icons columns that I don't know how to save to xml.
You welcome!
I noticed you are new here, so remember to mark your question as "Solved" after it's solved. That'll help the others who seeking the same answer. Good luck with your job :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.