By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,988 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,988 IT Pros & Developers. It's quick & easy.

How i can view?????

Cross11
P: 4
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
Share this Question
Share on Google+
2 Replies


sashi
Expert 100+
P: 1,754
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
P: 4
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.