klyxmaster
Member
- Joined
- Aug 18, 2013
- Messages
- 5
- Programming Experience
- 10+
I hope I am in the right area.. I am moving up to vb2008
I have mysql with millions of records. One of the tables I want to search but display only a few of the fields in a results grid. I know how to dump a record in it, but the table has over a 100+ fields. I just need a few.
this will fill the grid with a row of specified results from search. but I want to only show about 5 of the fields in the grid. How is this done? I am still used to vb6, but I cant seem to get mysql to work with it - thus the change to 2008
thanks!
I have mysql with millions of records. One of the tables I want to search but display only a few of the fields in a results grid. I know how to dump a record in it, but the table has over a 100+ fields. I just need a few.
VB.NET:
Try
conn.Open()
da = New MySqlDataAdapter(sqlQRY, conn)
Dim cb As MySqlCommandBuilder = New MySqlCommandBuilder(da)
da.Fill(ds, "super_big_table")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "super_big_table"
Catch ex As Common.DbException
MsgBox(ex.ToString)
Finally
conn.Close()
End Try
this will fill the grid with a row of specified results from search. but I want to only show about 5 of the fields in the grid. How is this done? I am still used to vb6, but I cant seem to get mysql to work with it - thus the change to 2008
thanks!