Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DataList Formatting

Thread Tools

DataList Formatting

Chris Kennedy
Posts: n/a
I have a datalist in which I have the data bound in the HTML. I want to
utilise the functionality of the selected style property. The HTML below
does this. I can't figure out how to space the HTML into nicely formatted
columns. If I use tables the formatting of the text disappears, applying a
stylesheet to the item style with padding merely move the whole lot over not
the individual items. Can anyone point me in the right direction? Regards,

<aspataList id="DataList1" runat="server" Width="526px" Height="44">


<asp:Label id="Label1" runat="server">TimeSheetID</asp:Label>

<asp:Label id="Label2" runat="server">Job Description</asp:Label>

<asp:Label id="Label4" runat="server">Duration</asp:Label>

<asp:Label id="Label5" runat="server">Start Date</asp:Label>


<ItemStyle Font-Bold="True" ForeColor="Black"

<SelectedItemStyle Font-Bold="True" ForeColor="White"


<%# Databinder.eval(Container,"DataItem.tsheetid") %>

<%# Databinder.eval(Container,"DataItem.jobdesc") %>

<%# Databinder.eval(Container,"DataItem.duration") %>

<%# Databinder.eval(Container,"DataItem.startdate") %>

asp:LinkButton id="lnkTsheetid" runat="server" CssClass="stdtext">Get
Timesheet Details</asp:LinkButton>



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
formatting the display of a datalist? Moe Sizlak ASP .Net 2 08-02-2004 02:24 AM
Need formatting options menu for formatting hard drive Mark T. Computer Support 3 11-24-2003 11:50 PM
Complex DataList formatting with a <table> Leo Duran ASP .Net 2 10-31-2003 08:12 AM
Datalist Formatting Strangeness Joe ASP .Net 3 10-18-2003 04:13 AM