473,395 Members | 1,441 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,395 software developers and data experts.

What is this DataList exactly ?

Dear all,

Does this datalist control is somehow similar as a datasource for any other
control ?
I really to catch the use of it, can we assimilate that control as a kind of
dataset or dataprovider ?

Similar things with the Repeater control is for defining a kind of section
in a set of dta in a grid layout ?

thnaks for your clarification
regards
Nov 19 '05 #1
5 1161
Serge,

The Datagrid, Repeater, and Datalist are all similar controls that each have
the same ultimate function: displaying data contained in some type of object
usually a DataTable. Data may be bound to each control.

Really they are all very similar each one just gives various levels of
control over the display. I rarely use anything except the datagrid, but
there have certainly been times that the Datalist has been the better
display tool depending on the type of data I was displaying.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:5F**********************************@microsof t.com...
Dear all,

Does this datalist control is somehow similar as a datasource for any
other
control ?
I really to catch the use of it, can we assimilate that control as a kind
of
dataset or dataprovider ?

Similar things with the Repeater control is for defining a kind of section
in a set of dta in a grid layout ?

thnaks for your clarification
regards

Nov 19 '05 #2
The DataList control is a simple way to show items coming from a DataSource.
The repeater should allows to repeat whatever you want for each rows in a
datasource.

You'll find a short explanation of the purpose and usage of each class in
the Class Library Reference :
http://msdn.microsoft.com/library/de...ClassTopic.asp
--

"serge calderara" <se************@discussions.microsoft.com> a écrit dans le
message de news:5F**********************************@microsof t.com...
Dear all,

Does this datalist control is somehow similar as a datasource for any other control ?
I really to catch the use of it, can we assimilate that control as a kind of dataset or dataprovider ?

Similar things with the Repeater control is for defining a kind of section
in a set of dta in a grid layout ?

thnaks for your clarification
regards

Nov 19 '05 #3
For example - You have a dataset with 15 Names (only 1 column).. and
you want to display 4 Names in a row like below..

Name1 Name2 Name3 Name4
Name5 Name6 Name7 Name8
Name9 Name10 Name11 Name12
Name13 Name14 Name15

Datalist can display data in this layout by setting 1 or 2 properties.
With datagrid and repeater you will be able to achive this , but will
need additional coding.

hope this helps :) ..

Nov 19 '05 #4
I Have try to test teh datalist as follow :

OleDbDataAdapter1.Fill(ds)
DataList1.DataSource = ds
DataList1.DataBind()

but the only thing I get is s blank page, no data even column headers....
Any idea why ?

By the way why this datagrid absolutly need what is called a template ? I
just want to display data as simple text

thnaks
serge
"S. Justin Gengo" wrote:
Serge,

The Datagrid, Repeater, and Datalist are all similar controls that each have
the same ultimate function: displaying data contained in some type of object
usually a DataTable. Data may be bound to each control.

Really they are all very similar each one just gives various levels of
control over the display. I rarely use anything except the datagrid, but
there have certainly been times that the Datalist has been the better
display tool depending on the type of data I was displaying.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:5F**********************************@microsof t.com...
Dear all,

Does this datalist control is somehow similar as a datasource for any
other
control ?
I really to catch the use of it, can we assimilate that control as a kind
of
dataset or dataprovider ?

Similar things with the Repeater control is for defining a kind of section
in a set of dta in a grid layout ?

thnaks for your clarification
regards


Nov 19 '05 #5
Serge,

Are you certain that any data rows are in your datasource?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:AA**********************************@microsof t.com...
I Have try to test teh datalist as follow :

OleDbDataAdapter1.Fill(ds)
DataList1.DataSource = ds
DataList1.DataBind()

but the only thing I get is s blank page, no data even column headers....
Any idea why ?

By the way why this datagrid absolutly need what is called a template ? I
just want to display data as simple text

thnaks
serge
"S. Justin Gengo" wrote:
Serge,

The Datagrid, Repeater, and Datalist are all similar controls that each
have
the same ultimate function: displaying data contained in some type of
object
usually a DataTable. Data may be bound to each control.

Really they are all very similar each one just gives various levels of
control over the display. I rarely use anything except the datagrid, but
there have certainly been times that the Datalist has been the better
display tool depending on the type of data I was displaying.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:5F**********************************@microsof t.com...
> Dear all,
>
> Does this datalist control is somehow similar as a datasource for any
> other
> control ?
> I really to catch the use of it, can we assimilate that control as a
> kind
> of
> dataset or dataprovider ?
>
> Similar things with the Repeater control is for defining a kind of
> section
> in a set of dta in a grid layout ?
>
> thnaks for your clarification
> regards


Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Kaung Htut O via DotNetMonster.com | last post by:
Hi to all Is there a way to access Datalist Footer's Control properties from outside of datalist event. Pls note that I mean not a datagrid, only for datalist. Thanks Kaung Htut Oo
3
by: Ben Becker | last post by:
I am trying to build a custom crosstab type of grid where I take some items in a data grid and based on the content of the current item compared to the previous item, determine if a new row in a...
5
by: Petr SIMUNEK | last post by:
Is there a way to render something before the DATALIST encapsulation table gets rendered ? So that I could have Label before actual table that is rendered by DATALIST... <h1>Some Label</h1>...
3
by: Andy B | last post by:
When I do this line of code at the top of a page: Response.Write(CreateContractWizard.Controls(0).ToString()) I get this line in the page: System.Web.UI.Wizard+WizardContentTable What...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...

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.