You are on page 1of 1

Dim pid As Integer = txtsearch.

Text
Dim command As New SqlCommand("Select * from WarehouseTbl where Code='" &
pid & "'", Con)
Dim adapter As SqlDataAdapter
adapter = New SqlDataAdapter(command)
Dim dt As New DataTable
adapter.Fill(dt)
WarehouseDGV.DataSource = dt

You might also like