Newbe question about databinding

  • Thread starter Thread starter Kostas Kousinovalis
  • Start date Start date
K

Kostas Kousinovalis

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
 
Kostas Kousinovalis said:
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.databinding
 
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
 
Hi,

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