ObjectDataSource
-
I am trying to build GrirdViews and ObjectDatsources dynamically as it could be any number. I have built the grid no problems but i cannot work how to build the objectdataource dynamically. Grid = New ReportingGrid DataSource = New ObjectDataSource DataSource.ID = "ODS" & Counter DataSource.SelectMethod = "ReturnDataTable" DataSource.TypeName = "Eurofins.EOLDotNET.SummaryReport" DataSource.Select() Grid.DataSource = DataSource.ID.ToString Grid.DataBind() This however creates a new version of the SummaryReport class so there is no data to retrieve. Basically I have the data in a dataset that is global to the class and I wan to create a ObjectDataSource and assign it to this dataset. Any ideas would be very welcome. Sorry bout this post but I'm quite new to these sort of things.