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

Newbe question about databinding

P: n/a
Hello

Is it so difficult to make a databound form or am I somewhere wrong?

First I create a SQL DataAdapter with a connection to Northwid Products

VB creates a SQLConnection1

Then I'm creating a Dataset

I'm putting a datagrid in the form and I'm changing the property Datasource
to Dataset11

I'm running the project and the Grid its empty!

What did I missed?

Thanks a lot
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Cor
Hi Kostas,
I thought, Dataset11.table,

You use the IDE properties I think, than you have to push the plus and
choose the table.

I did not check it, and did not do it in that way some time,

Tell me if it was the solution or not but I am quiet sure?.

Cor

I'm putting a datagrid in the form and I'm changing the property Datasource to Dataset11

Nov 20 '05 #2

P: n/a
Hi,

Ensure the data set is filled with the data. This is done by calling the
DataAdapter.Fill() method.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Kostas Kousinovalis" <in**@lexiconsoftware.gr> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello

Is it so difficult to make a databound form or am I somewhere wrong?

First I create a SQL DataAdapter with a connection to Northwid Products

VB creates a SQLConnection1

Then I'm creating a Dataset

I'm putting a datagrid in the form and I'm changing the property Datasource to Dataset11

I'm running the project and the Grid its empty!

What did I missed?

Thanks a lot


Nov 20 '05 #3

P: n/a
"Kostas Kousinovalis" <in**@lexiconsoftware.gr> schrieb
Is it so difficult to make a databound form or am I somewhere
wrong?

First I create a SQL DataAdapter with a connection to Northwid
Products

VB creates a SQLConnection1

Then I'm creating a Dataset

I'm putting a datagrid in the form and I'm changing the property
Datasource to Dataset11

I'm running the project and the Grid its empty!

What did I missed?


Do you fill the dataset by code?

More databinding questions:
microsoft.public.dotnet.framework.windowsforms.dat abinding
--
Armin

http://learn.to/quote
http://www.plig.net/nnq/nquote.html

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.