"Lucas Tam" <REMOVEnntp@rogers.com> wrote in message
news:Xns96BA9DC94D66Enntprogerscom@127.0.0.1...[color=blue]
> "tshad" <tscheiderich@ftsolutions.com> wrote in
> news:eteblj0pFHA.2472@tk2msftngp13.phx.gbl:
>[color=green]
>> If it puts the label and linkbutton in the same cell, how do you tell
>> it to align 1 left and 1 right?[/color]
>
> You'll need to use CSS to align 2 items with 2 different alignments in the
> same cell.[/color]
I tried that:
Here is the template Column:
<asp:TemplateColumn Visible="true" headerText="Bundle(10):"
ItemStyle-Width="90" ItemStyle-VerticalAlign="Top">
<itemtemplate>
<asp:Label ID="Bundle10ID" visible="false" text='<%#
Container.DataItem("Bundle(10)ID")%>' runat="server"/>
<asp:Label ID="Bundle10" CssClass="onleft" text='<%#
String.Format("{0:$#,##0}",Container.DataItem("Bun dle(10)"))%>'
runat="server"/>
<asp:linkButton ID="Bundle10Link" CssClass="onright"
OnClick="GetPrice" text='Buy' runat="server"/>
</itemtemplate>
Here is the CSS:
..onright {text-align:right}
..onleft {text-align:left}
Here is the output:
<td valign="Top" style="width:90px;">
<span id="JobPostingGrid__ctl3_Bundle10"
class="onleft">$1,400</span>
<a id="JobPostingGrid__ctl3_Bundle10Link" class="onright"
href="javascript
:__doPostBack('JobPostingGrid$_ctl 3$Bundle10Link','')">Buy</a>
</td>
But it just puts the 2 objects next to each other.
Am I using the wrong CSS?
[color=blue]
>
> Otherwise use 2 cells (columns).[/color]
Problem is the Header.
Thanks,
Tom[color=blue]
>
> --
> Lucas Tam (REMOVEnntp@rogers.com)
> Please delete "REMOVE" from the e-mail address when replying.
>
http://members.ebay.com/aboutme/coolspot18/[/color]