views:

133

answers:

1

I know that I can't use this web control in my C# windows application and that I am restricted to DataGridView control. But this does not display results in an elegant manner as the Web.UI.Webcontrol.GridView control but instead displays it like the results when a SQL query is executed in sql server.

I prefer not going down the path of hosting a webuser control which in turn would launch my website using the Web.UI.WebConntrol.GridView control.

+2  A: 

You can make the DataGrids look a lot nicer than the default, this MSDN article explains some methods you can use, mostly by changing the available properties, and making use of the DataGridTableStyle and DataGridColumnStyle.

If you want to implement paging, and are working with a read only dataset, you can look at this knowledge base article.

Finally, if you've got money to spnd, there are many companies selling a version of a datagrid control that will look more like the web control, Syncfusion and DevExpress are just two, although I've not used them myself, so can't say how good they are

James Osborn