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. .NET (Core and Framework)
  4. SqlDataAdapter.Fill(DataSet)

SqlDataAdapter.Fill(DataSet)

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpquestion
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.
  • L Offline
    L Offline
    liquid_
    wrote on last edited by
    #1

    I'm going to bind data set to combo boxes. Data set is compound from 2 tables and joined by relation. The declaration is as follows: Private tablePRAgent As PRAgentDataTable Private tablePRAgentLocation As PRAgentLocationDataTable Private relationPRAgentPRAgentLocation As DataRelation The table PRAgentDataTable has main rows with details in table PRAgentLocationDataTable. So first combo is bound to PRAgentDataTable and second - to PRAgentLocationDataTable, by relation. Filling adapters (and in consequence combos) while I add clause "WHERE col=@parameter" ends with "exception of type 'System.Data.ConstraintException'". When there is no WHERE clause everything goes right. How could I overcome this problem?

    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