467,161 Members | 851 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,161 developers. It's quick & easy.

How i can view?????

Cross11
How can i view my tables on my datagrid????

here is my code:


Dim Conn As MySqlConnection = New MySqlConnection

If ConnectionState.Open Then
Conn.Close()
End If

Conn.ConnectionString = "my connection"

Conn.Open()
'Dim kk As Integer
Dim adt As MySqlDataAdapter = New MySqlDataAdapter(sql, Conn)
Dim ComB As MySqlCommandBuilder = New MySqlCommandBuilder(adt)
Dim dat As DataSet = New DataSet
'kk = adt.Fill(dat, "itemchild")

dgv1.DataSource = dat.Tables("tblparts")
dgv1.Refresh()
Nov 3 '06 #1
  • viewed: 872
Share:
2 Replies
sashi
Expert 1GB
Hi there,

What's wrong with the below code segment? any error?

How can i view my tables on my datagrid????

here is my code:


Dim Conn As MySqlConnection = New MySqlConnection

If ConnectionState.Open Then
Conn.Close()
End If

Conn.ConnectionString = "my connection"

Conn.Open()
'Dim kk As Integer
Dim adt As MySqlDataAdapter = New MySqlDataAdapter(sql, Conn)
Dim ComB As MySqlCommandBuilder = New MySqlCommandBuilder(adt)
Dim dat As DataSet = New DataSet
'kk = adt.Fill(dat, "itemchild")

dgv1.DataSource = dat.Tables("tblparts")
dgv1.Refresh()
Nov 3 '06 #2
Cross11
Hi there,

What's wrong with the below code segment? any error?

there is no error and no response to the datagrid i dont know y??
Nov 3 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by js | last post: by
3 posts views Thread by M. Mehta | last post: by
4 posts views Thread by Ryan | last post: by
8 posts views Thread by Jef Driesen | last post: by
4 posts views Thread by Neil | last post: by
12 posts views Thread by Neil | last post: by
10 posts views Thread by Zack Sessions | last post: by
1 post views Thread by Nogusta123@hotmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.