Trying to Bind A DataGrid to a DataSet based on a SQL Select Statement

  • Thread starter Thread starter Atley
  • Start date Start date
A

Atley

Any ideas on how to do this correctly so I can set the tablestyles and not
have the table show up as a child?

I keep getting stuck, so if anyone can help, it would be greatly
appreciated!
 
Hi Atley:
Atley said:
Any ideas on how to do this correctly so I can set the tablestyles and not
have the table show up as a child?

It'd help if I saw the code, but if you bind to a dataset, particlarly if
you don't set the displaymember and valuemember properties, you'll get the
parent/child stuff.

To eliminate it, bind to a specific table in the dataset or set the
displaymember and valuemember properties to the parent table.
I keep getting stuck, so if anyone can help, it would be greatly
appreciated!

HTH,

Bill
www.devbuzz.com
www.knowdotnet.com
 
Hi Atley,

myDatagrid1.datasource = datasource ' dataview, datatable, dataset

You have to set the datagrid tablestyles member to the right table, maybe
that is your problem.

However that is in my opinion all you have to do.

Cor
 
Back
Top