Convert a DataGridView to HTML?

  • Thread starter Thread starter phrankbooth
  • Start date Start date
P

phrankbooth

Hello,

Is there a way to convert .Net2's DataGridView into an HTML table?

Any pointers appreciated.

Thanks,
--PhB
 
it is rendered as a html table so you could do something like

stringReader reader = new StringReader();
gridView1.RenderControl(reader);

string html = reader.tostring();

or something like that. look into the renderControl method
 

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

Back
Top