Help with DataGridView basic stuff?

cantonarv

New member
Joined
Apr 24, 2008
Messages
1
Programming Experience
1-3
I am just getting used to .NET 2.0 framework and using the Datagridview control rather than the datagrid

Using this code on a button:

Dim conn As String
conn = ("server=ConnStringxxx")
Dim ds As New DataSet
Dim da As SqlDataAdapter
Dim mySQL As String
mySQL = "select top 100 * from myTable"
da = New SqlDataAdapter(mySQL, conn)
da.Fill(ds, "myTable")
DataGridView1.DataSource = da

When I add a watch I see the data stored within the DataGridView1 control but on the Form where I placed the control its empty.
I used to have to use .Bind() method but this is not on the DataGridView

Any help?
 
Back
Top