473,405 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Display all fields in a datalist

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
3 1353
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chumley the Walrus | last post by:
I'm trying to display just one record from an sql dbase with a datalist control. My sql connection, statement, command, datasource, etc are all tested and correct, but I do not see the display for...
3
by: olle | last post by:
Hi everyone. Beging a newbee to asp.net and used to work with traditional asp I have one problem working with a datalist. 1/ I make a dataset as as session variable like session("employees") 2/...
3
by: Roland Wolters | last post by:
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...
4
by: Joe Van Meer | last post by:
Hi, Is the datalist meant for one table or can I use it to display information from 2 different tables? Or should I be looking at a datagrid instead? I began my code and kinda ran into a snag...
1
by: charmetton | last post by:
Hello all, I try to create a part of a form with a datalist: <ASP:DataList id="formulaire" runat="server" RepeatDirection="Horizontal" ItemStyle-Width="100%"> <ItemTemplate> <table> <tr> <td...
1
by: Chris | last post by:
I would like to know how to display data column for a single record contains many fields. Likes the first row shows first 5 fields, 2nd row show next 5 fields, etc... I tried to use datagrid,...
0
by: Jonathan L. | last post by:
I've got a relatively simple scenario that I haven't been able to solve in ASP 2.0. Let's assume I have a simple foreign key relationship as demonstrated below: ------------------- ...
7
by: | last post by:
I'm using ASP.NET 2.0, C#, SQL Server 2005, and databound controls like the DataList and the GridView. Right now I'm using SqlDataSource as part of very quick and dirty site; I'm not looking to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.