Display all fields in a datalist

  • Thread starter Thread starter Roland Wolters
  • Start date Start date
R

Roland Wolters

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
 
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
 
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
 
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
 
Back
Top