Solved

gridview right align header

Posted on 2014-10-11
1
194 Views
Last Modified: 2014-10-26
I have

             <asp:BoundField DataField="Core" HeaderText="Core" DataFormatString="{0:n}" >
                <HeaderStyle HorizontalAlign="Right"  ></HeaderStyle>
                <ItemStyle HorizontalAlign="Right"></ItemStyle>
            </asp:BoundField>

Ignores horizontal align

Any ideas?
0
Comment
Question by:charlesbaldo
1 Comment
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 40375512
It may be other CSS rules that are overwriting your  alignment. (e.g. Gridview Cssclass)
if you are using IE, use developer tools (F12) and inspect which Css rules are applied to the header and row cells.

If more help needed please post your whole grid view mark up as well as the results from developer tools.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question