How to binding controls (textboxt, radiobutton, etc) with LINQ to SQL??
LINQ
1
Posts
1
Posters
0
Views
1
Watching
-
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..