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

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

P: n/a
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!

Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Atley:
"Atley" <at*****@homtmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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
Nov 20 '05 #2

P: n/a
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
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.