0

hi All,

Why when I drag the datagridview in my designer, they don't give me a selection on which data source?
How can i declare my datsource, dataset?


URGENT..HELPPP

4
Contributors
13
Replies
18
Views
5 Years
Discussion Span
Last Post by arezz09
0
Dim Myds as New DataSet
Dim Mycmd As New SqlCommand(YourSQLQuery, YourConnection)
Dim Myda As New DataAdapter(Mycmd)
Myda.fill(Myds)
0

how bout table adapter? meaning the data from database will mapped to the table in datagridview

0

cannot...I cant even add a datasource, dataset and databinding...
I wonder why..Previously I was able to do this when once i drag and drop datagridview on the form...

But, today when I wanted to create another new project, somehow this happen...

0

mybe u hve problem with yr vb.net..b4 this i get problem to add data source but after i reinstall vb.net, it back normaly..

i think u should reinstall yr vb...

Edited by arezz09: n/a

0
Dim ds As New DataSet
Dim cmd As New SqlCommand("your query", connection)
Dim da As New SqlDataAdapter(cmd)
da.fill(ds)
Dgview.Datasource = ds
Dgview.DataBind()

try this one

0

if I want to have this one, what should i do?

Me.MeetingTableAdapter.Fill(Me.CarerptDataSet.Meeting)

0

cannot create...no menu for create...what it show is none instead of add project data source

0

Me.MeetingTableAdapter.Fill(Me.CarerptDataSet.Meeting)
this code will automatic load 2 yr form when u create dataset..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.