Add WebBrowser control to DataGridView cell
Posted on 2011-04-21
I'm just cutting my teeth in winforms programming. Most of my experience is in ASP.NET web programming. I'm building an application that will display work orders from the website within a winform. On the web, I use a GridView to display the work order notes (which contain HTML markup). In the WinForms app, I am trying to use a DataGridView control to display the same info, pulled from the same SQL database. The DataGridView control spits out raw HTML which is very user un-friendly. I have yet to figure out how to get the DataGridView to display formatted text.
So... My next idea is to embed a webbrowser control in a cell on each row, and fill that with the HTML. Is it possible to programatically add a webbrowser control within a cell of a DataGridView? If not, any other ideas??