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. Databinding problem

Databinding problem

Scheduled Pinned Locked Moved Visual Basic
helpcsharpdatabasequestion
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.
  • C Offline
    C Offline
    Corobori
    wrote on last edited by
    #1

    I am a newbie programing with VB.NET. I need to write an app separating Data Access Layer and form. In my DAL I have the following method: Public Function GetcboRelationsDataSet() As cboRelationsDataSet Dim ds As New cboRelationsDataSet Try cboRelationsDataAdapter.Fill(ds) return ds Catch exc As Exception Dim msg As String msg = "Error reading Widget List from database" Throw New DALException(msg, exc, Nothing) End Try End Function And in my form this code to bind the dataset: Private Sub frmListeRelations_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim rh As New RelationsHandler Try lstRelations.DataSource = rh.GetcboRelationsDataSet lstRelations.DisplayMember = "sNom" lstRelations.Refresh() Catch ex As Exception End Try End Sub Is this correct ? The code runs fine but no data comes up. jean-luc

    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