Table in a Windows Application

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

Hello,

Hope someone can help me or lead me in the right direction. I've search
endless articles, and they all keep refering to database bindings, which I
don't want.

Scenerio:

Create a windows application with;

1 text box (will contain e-mail address)
1 text box (subject)
1 button Send Mail

And have a table grid (with no connection to any databases, just a dummy
table, with multiple columns) where the person can add multiple lines in a
grid style, then click the SEND MAIL, and it e-mails the contents of the
table to the person on the textbox (email), the thing is, I would like to
keep the data in it's table/column format when it's being mailed. When the
application closes, the data can be lost, as this application will only
serve to send current data via e-mail.

thank you
 
Hi Costa,

not sure, if I have understood the Problem, but consider this:
1) Create new DataSet
2) Add Table to DataSet
3) Use DataSets ToXml() Method

transport the Table in the E-Mail as XML.
At the other end
4) Create new DataSet
5) Use DataSets FromXml() Method

Hope this helps :-)

Regards,
Christian
 
Back
Top