Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. ObjectDataSource

ObjectDataSource

Scheduled Pinned Locked Moved Visual Basic
csstutorialannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BobsAfro
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups