Friday, August 20, 2010

Displaying a Dataset in a Data View Grid Contol VB.net 2005?

I have a grid view control on my form and I have another class with a method that returns a Dataset.





How do I get the grid to display the Dataset?





I keep reading about a SetDataBinding method, is this still available in VB 2005 cause I get an error that its not part of the DataGrid Control and it doesnt show up on the drop down list.Displaying a Dataset in a Data View Grid Contol VB.net 2005?
in WinForms use dgMyGrid.DataSource = myDataset.Tables(0) But in ASP.NET you MUST add Page.DATABIND() which is a method that tells page to bind data to grid.

No comments:

Post a Comment