E
et
How can I export data from a grid into Excel? Or from a datatable?
I don't have a query I am displaying the schema from a database using a
datatable, and now I want to export it to excel:
dtFields = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Columns, New Object()
{Nothing, Nothing, Nothing, Nothing})
dg.DataSource = dtfields
dg.DataBind
I don't have a query I am displaying the schema from a database using a
datatable, and now I want to export it to excel:
dtFields = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Columns, New Object()
{Nothing, Nothing, Nothing, Nothing})
dg.DataSource = dtfields
dg.DataBind