We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Try Dim db As New DataContext("C:\Grow.mdf") Dim Strains As Table(Of Strain) = db.GetTable(Of Strain)() Dim q = From objStrain In Strains Select objStrain.StrainID, objStrain.Code, objStrain.Name Order By Code If q.Count = 0 Then MsgBox("Nothing returned.") Exit Sub End If DataGridView1.DataSource = q Catch ex As Exception MsgBox(ex.Message) End Try
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.