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. LINQ
  4. How to binding controls (textboxt, radiobutton, etc) with LINQ to SQL??

How to binding controls (textboxt, radiobutton, etc) with LINQ to SQL??

Scheduled Pinned Locked Moved LINQ
csharpdatabasewpfwcflinq
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.
  • A Offline
    A Offline
    adjiex_jogja
    wrote on last edited by
    #1

    This is my problem.. Private dc As New EMRDataContext Private bs As New BindingSource() Private Sub FormListPatient_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load GetPatients() End Sub Public Sub GetPatients() Dim patients = From p In dc.patients Select ID = p.patient_id, Nama = p.patient_name, JK = p.sex, Tgl_Lahir = p.birth_date, Alamat = p.address & " " & p.city & ", " & p.zip, Telepon = p.phone bs.DataSource = patients.ToList() Me.DataGridViewX1.DataSource = bs End Sub It's worked.. It just binding datagridview with LINQ to SQL. But how if i want to binding textbox, radiobutton, etc.. with LINQ to SQL? But i don't want use a binding navigator or Dataset.. Any solution for my problem? Thanks for reply..

    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