- Jun 2, 2008
- 163
- 0
- 0
I'm trying to convert a GridView to CSV
All I have is the GridView displaying my XML file.
//**************
protected void Page_Load(object sender, EventArgs e)
{
DataSet myDataSet = new DataSet();
myDataSet.ReadXml(Server.MapPath("portfolio.xml"));
//dgBooks.DataSource = myDataSet;
//dgBooks.DataBind();
GridView1.DataSource = myDataSet;
GridView1.DataBind();
}
//**************
Can someone point me out to a general guide. I've usually only found ones that are specific for a certain subject and I don't understand them.
Thanks
All I have is the GridView displaying my XML file.
//**************
protected void Page_Load(object sender, EventArgs e)
{
DataSet myDataSet = new DataSet();
myDataSet.ReadXml(Server.MapPath("portfolio.xml"));
//dgBooks.DataSource = myDataSet;
//dgBooks.DataBind();
GridView1.DataSource = myDataSet;
GridView1.DataBind();
}
//**************
Can someone point me out to a general guide. I've usually only found ones that are specific for a certain subject and I don't understand them.
Thanks
