dump dataset into table

G

Guest

Hello,
I am quite new in asp.net, here is the code I retrieve data from a web service
SVP.ThisWebService.loadMethod lm = new SVP.ThisWebService.loadMethod();
System.IO.StringReader sr = new System.IO.StringReader(lm.loadXlm());
DataSet ds = new DataSet();
ds.ReadXlm(new System.Xlm.XlmTextReader(sr)) ;

Now, I have data in ds, what is the easiest way to dump this dataset into a
table?
 
B

Brock Allen

Use data binding as the next 2 lines of code:

_grid.DataSource = ds;
_grid.DataBind();

Where _grid is defined int he ASPX as:

<asp:DataGrid runat=server id=_grid />
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top