Guys, this is my code to show my database in datagridview, my database using sql server, and i'm using ODBC and udl.
Dim mdlb As New MdlDB
Dim sql As New SQL
Dim query As String = sql.SetSELECT("Title", "news")
Dim ds As New DataSet
Dim dv As New DataView
ds = sql.FillDataSet(query, Label1.Text)
dv.Table = ds.Tables(0)
DataGridView1.DataSource = dv
but i can't appear in my datagridview. AnyBody can help me ??PLS..
Dim mdlb As New MdlDB
Dim sql As New SQL
Dim query As String = sql.SetSELECT("Title", "news")
Dim ds As New DataSet
Dim dv As New DataView
ds = sql.FillDataSet(query, Label1.Text)
dv.Table = ds.Tables(0)
DataGridView1.DataSource = dv
but i can't appear in my datagridview. AnyBody can help me ??PLS..