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

Display all fields in a datalist

P: n/a
Hi,

This tast seems so simple but I can't seem to crack it:

I have some data in a dataset. I can bind the dataset to a datalist control
and show the fieldvalues but i would have to hardcode the filednames.

Problem is that I just want to show ALL the fields without knowing what
table is loaded. I do not know what fields are present.

I am trying to foreach through items in the container object in the
itemtemplate but no luck.

Any tips?
Greetings,

Roland
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Roland,

Is there any reason you can't bind to a datagrid? It seems like it would
give you just what you want.

Ken

"Roland Wolters" <Ro****@wolters-ict.nl> wrote in message
news:Xn**************************@207.46.248.16...
Hi,

This tast seems so simple but I can't seem to crack it:

I have some data in a dataset. I can bind the dataset to a datalist
control
and show the fieldvalues but i would have to hardcode the filednames.

Problem is that I just want to show ALL the fields without knowing what
table is loaded. I do not know what fields are present.

I am trying to foreach through items in the container object in the
itemtemplate but no luck.

Any tips?
Greetings,

Roland


Nov 18 '05 #2

P: n/a
Hi, Roland,

Is it really important for your design to use a DataList? You can easily
display all of the data in a DataTable in a DataGrid with
AutoGenerateColumns = true.

Greetings
Martin
"Roland Wolters" <Ro****@wolters-ict.nl> wrote in message
news:Xn**************************@207.46.248.16...
Hi,

This tast seems so simple but I can't seem to crack it:

I have some data in a dataset. I can bind the dataset to a datalist control and show the fieldvalues but i would have to hardcode the filednames.

Problem is that I just want to show ALL the fields without knowing what
table is loaded. I do not know what fields are present.

I am trying to foreach through items in the container object in the
itemtemplate but no luck.

Any tips?
Greetings,

Roland

Nov 18 '05 #3

P: n/a
"Martin Dechev" <de*******@hotmail.com> wrote in news:#uWKkGvIEHA.2948
@TK2MSFTNGP11.phx.gbl:
Hi, Roland,

Is it really important for your design to use a DataList? You can easily
display all of the data in a DataTable in a DataGrid with
AutoGenerateColumns = true.

Greetings
Martin

Don't tell me I have been missing the obvious all day....(realy going
berserk on this)..!!

Going to try...

Greetings,

Roland
Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.