Question
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
Imports System.Data.SqlClientImports System
Imports System.Data
Imports System.IO
Public Class CarAddingForm
Private cs As String
Private da As SqlDataAdapter
Private ds As DataSet
Private cmd As SqlCommandBuilder
Public Property connectString() As String
Get
Return cs
End Get
Set(ByVal value As String)
cs = value
End Set
End Property
Private Sub CarAddingForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
da = New SqlDataAdapter("select * from Car", cs)
ds = New DataSet
cmd = New SqlCommandBuilder(da)
da.Fill(ds, "Car")
DataGridView1.DataSource = ds.Tables("Car")
End Sub...