Friday, September 19, 2008

Powerbuilder Datawindow.NET to DataSet

Converting from powerbuilders datawindow to a dataset in c# was a lot easier than I first thought..though i did write an entire function that looped through the rows to do it at first. I eventually figured out this short code here.

DataSet lds = new DataSet();
lds.ReadXml(new System.IO.StringReader(YourDataWindow.Describe("Datawindow.Data.XML")));


Thats it..(Make sure you retrieve first of course)

No comments: