Use Repeater or DataList?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Scott (Scott_at_discussions.microsoft.com)
Date: 02/15/05


Date: Tue, 15 Feb 2005 15:47:02 -0800

I'm trying to display a table of my company's departments in a 3 column
format with alternating row colors. The department names are being pulled
from a database in alphabetical order. I want to order the depts in
alphabetical order going from left to right in columns of 3 like:
 
DeptA DeptB DeptC -- light colored row
DeptD DeptE DeptF -- dark colored row

I've figured out how to get the Depts. to display in the order I need them
to using a DataList, but I'm having trouble getting the rows to alternate
colors. Can I get the DataList to do what I need to or am I better off
looking into using a Repeater?

Any advice/code samples are appreciated. Thanks!



Relevant Pages

  • How do I control PWA Views list order?
    ... that are available in Project Center, and Project drill down? ... a way we can get them to display in some logical order? ... not in alphabetical order. ... All Project Enterprise Fields ...
    (microsoft.public.project.pro_and_server)
  • Re: Cant figure this out
    ... display the names in alphabetical order in a form or report you need to ... Then you have the option to display the full ... student id as a link to the student demographic table, ... grade test scores it has about 200 records and each is identified by the ...
    (microsoft.public.access.gettingstarted)
  • Re: Alphabetizing
    ... Now..here's another issue..Say i want to display the retired players ... last name in alphabetical order with its contents. ... some has middle names, initials. ...
    (comp.lang.ruby)
  • Re: [PHP] Sorting files in a directory
    ... Steve Marquez wrote: ... I have some code that opens a directory and displays the files. ... display the files in Alphabetical order. ...
    (php.general)