473,493 Members | 2,245 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ItemStyle-HorizontalAlign="right" not working

I have columns with text and radio buttons that I would like to center or
put to the right of the cell, but the attribute
ItemStyle-HorizontalAlign="right" doesn't seem to work.

<asp:TemplateColumn HeaderText="Job Board" Visible="true"
ItemStyle-Width="150px" HeaderStyle-Width="150px"
ItemStyle-VerticalAlign="middle"
ItemStyle-HorizontalAlign="right">
<itemtemplate>
asp:Label ID="JobBoardName" Text='<%#
Container.DataItem("Name")%>' runat="server"/>
</itemtemplate>
</asp:TemplateColumn>

Why is this and how do I get it to work?

Thanks,

Tom
Jul 20 '06 #1
1 8009
Try using a separate node for ItemStyle:

<asp:TemplateColumn HeaderText="Job Board" Visible="true">
<HeaderStyle Width="150px" />
<ItemStyle Width="150px" VerticalAlign="middle" HorizontalAlign="right"
/>
<ItemTemplate>
<asp:Label ID="JobBoardName" Text='<%# Container.DataItem("Name")%>'
runat="server" />
</ItemTemplate>
</asp:TemplateColumn>

Hope this helps!
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

<"tshad" <ts**********@ftsolutions.comwrote in message
news:eT**************@TK2MSFTNGP02.phx.gbl...
>I have columns with text and radio buttons that I would like to center or
put to the right of the cell, but the attribute
ItemStyle-HorizontalAlign="right" doesn't seem to work.

<asp:TemplateColumn HeaderText="Job Board" Visible="true"
ItemStyle-Width="150px" HeaderStyle-Width="150px"
ItemStyle-VerticalAlign="middle"
ItemStyle-HorizontalAlign="right">
<itemtemplate>
asp:Label ID="JobBoardName" Text='<%#
Container.DataItem("Name")%>' runat="server"/>
</itemtemplate>
</asp:TemplateColumn>

Why is this and how do I get it to work?

Thanks,

Tom

Jul 27 '06 #2

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

Similar topics

2
6228
by: Gary | last post by:
I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)"); This is not working ..what could be the...
6
3047
by: Mullin Yu | last post by:
hi, i have a web service that has file operations on Windows OS, and there may be a file concurrency issue if only one working directory e.g. c:\working therefore, i want to have a unique sub...
3
3091
by: | last post by:
Hello, I am hoping someone else has thought about a date time calculation i need to perform. I would like to be able to calculate the number of "working minutes" between 2 dates, given my...
8
1816
by: Hardy Wang | last post by:
Hi: Is it possible for me to create/open web application from remote machine other than port 80? And create application directly under virtual web site instead of creating a virtual directory?...
4
1615
by: GP | last post by:
We are facing a strange problems everything works fine when we are using the visual studio environment .But when we deploy it in the webserver the save buttons/submit buttons which has the cause...
5
2790
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
5
3042
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find...
8
2492
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
2
14809
by: Don | last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not working in certain classes of a project I'm working on. All the options are set, and it all works fine for most classes, but...
9
3182
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
0
7157
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
7195
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...
1
6873
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
7367
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
5453
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.