Ticket Q208047
Visible to All Users

ASPxGridView - How to change a horizontal alignment for GridViewDataHyperLinkColumn

created 16 years ago

I added a GridViewDataHyperLinkColumn to my ASPxGridView. I can't seem to get everything in this column to left align. Everything seems stuck at right alignment no matter what I do. The following is the tag I'm using:
                    <dxwgv:GridViewDataHyperLinkColumn Width="100px" VisibleIndex="1" PropertiesHyperLinkEdit-Style-HorizontalAlign="Left" FieldName="t1_ElementID" Caption="Project Name" ReadOnly="True">
                 <PropertiesHyperLinkEdit NavigateUrlFormatString="/Project/Project.aspx?ID={0}" Style-HorizontalAlign="Left" TextField="t1_ElementName">
                </PropertiesHyperLinkEdit>
                    <Settings AutoFilterCondition="Contains" />
                </dxwgv:GridViewDataHyperLinkColumn>
What's wrong that I can't get left alignment?

Comments (2)
Dennis Garavsky (DevExpress) 16 years ago

    Hello,
    Use the following markup instead:
    <dxwgv:GridViewDataHyperLinkColumn FieldName="StringProp" VisibleIndex="0">
    <CellStyle HorizontalAlign="Left">
    </CellStyle>
    </dxwgv:GridViewDataHyperLinkColumn>
    It works fine for me. See also the attached sample project.
    Does this info help you?
    Thanks,
    Dennis

    ?
    Unknown 16 years ago

      Thanks! That did the trick.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.