i have this code in connecting to the database
Dim CHKcmd As New SqlCommand("SELECT * FROM testTB", SQLme)
SQLme.Open()
Dim CHKval As SqlDataReader = CHKcmd.ExecuteReader()
how can I bind my connection to the datagridview control.
because in asp.net, it is just like this
Dim CHKcmd As New SqlCommand("SELECT * FROM testTB", SQLme)
SQLme.Open()
Dim CHKval As SqlDataReader = CHKcmd.ExecuteReader()
gridview1.datasource = chkcmd.executereader()
gridview1.bind
if you have any alternative solution, please share it. thanks!
Dim CHKcmd As New SqlCommand("SELECT * FROM testTB", SQLme)
SQLme.Open()
Dim CHKval As SqlDataReader = CHKcmd.ExecuteReader()
how can I bind my connection to the datagridview control.
because in asp.net, it is just like this
Dim CHKcmd As New SqlCommand("SELECT * FROM testTB", SQLme)
SQLme.Open()
Dim CHKval As SqlDataReader = CHKcmd.ExecuteReader()
gridview1.datasource = chkcmd.executereader()
gridview1.bind
if you have any alternative solution, please share it. thanks!