[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

need help with column.headerText display

Posted on 2005-04-25
3
Medium Priority
?
239 Views
Last Modified: 2010-04-07
Hello,

my output/display of my header text is coming out a little funky...

the output kinda looks like this:
OrderNumber
_____<arrow image appears here, not sure how to draw this>

I would like to have my header text appear like this:
OrderNumber
         <arrow image appears here>

in other words, have my arrow button somewhat centered underneath the header text.

below is the code for one of my column:

if (chkColumnSelect.Items[1].Selected == true)
{
      BoundColumn colNumber = new BoundColumn();
      colNumber.DataField = "OrderNumber";
      colNumber.SortExpression = "OrderNumber";
      thisGrid.Columns.Add(colNumber);
                        
      if ((string) Session["SortBy"] == "OrderNumber")
      {
            if((string) Session["OrderBy"] == "ASC")
            {
                  myCol.SortByOrderNumberAsc();
                  colNumber.HeaderText = @"Order Number <br> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp <img
                                                   src='../images/ARW05UP.ICO' border=0>";
            }
            else
            {
                  myCol.SortByOrderNumberDesc();
                  colNumber.HeaderText = @"Order Number <br> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp  <img
                                                   src='../images/ARW05DN.ICO' border=0>";
            }
      }
      else
      {
            colNumber.HeaderText = "Order Number";
      }
}

hope it kinda made sense....if not, please feel free to ask questions
0
Comment
Question by:brdrok
  • 2
3 Comments
 
LVL 7

Author Comment

by:brdrok
ID: 13859218
i probably should have mentioned that this is the header text for the data grid...
0
 
LVL 6

Accepted Solution

by:
sansoftura earned 500 total points
ID: 13859789
I believe you are getting the line because of the &nbsp that you are adding. To position the header text center you can give  HeaderStyle-HorizontalAlign="Center" in the TemplateColumn


0
 
LVL 7

Author Comment

by:brdrok
ID: 13860494
thanks for the pointer....

you mentioned templateColumn.  was afraid that i had to do some major re-writing but didn't realize that the bound column also has a headerStyle property


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

834 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