?
Solved

Is there a way to align (horizontally center) a HyperLinkColumn of an aspdatagrid?

Posted on 2005-04-02
2
Medium Priority
?
257 Views
Last Modified: 2010-08-05
I have a datagrid where I am including an image using a HyperLinkColumn using the following code (I didnt add the navigation url yet):

<asp:HyperLinkColumn Text ="<img border=0 src=../images/icons/trash-24.png>" />

When the data grid is displayed in the UI it is left justified.  Is there a way to center this icon in the column?
0
Comment
Question by:egdigital
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
tusharashah earned 500 total points
ID: 13689833
Add Style like following:

<asp:HyperLinkColumn Text ="<img border=0 src=../images/icons/trash-24.png>" >                                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:HyperLinkColumn>

-tushar
0
 

Author Comment

by:egdigital
ID: 13690415
Great, thanks a lot tushar that works perfectly
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

777 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