Hello,
I want the New button in the command column header to be aligned to the Center and the text of the rest of the column headers to aligned to the right.
Is this possible?
Thank you
Dov
Set different text alignment for different column headers
Answers approved by DevExpress Support
Hi Dov,
You can assign the common header style for all columns using the Header.HorizontalAlign property and overwrite this property for the command column:
ASPx<dx:ASPxGridView ID="ASPxGridView2" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" KeyFieldName="ShipperID">
<Styles>
<Header HorizontalAlign="Right"></Header>
</Styles>
<Columns>
<dx:GridViewCommandColumn ShowNewButton="true" ShowEditButton="true" ShowNewButtonInHeader="true">
<HeaderStyle HorizontalAlign="Center" />
</dx:GridViewCommandColumn>
....
</Columns>
</dx:ASPxGridView>
Let me know if you need further assistance.
Hello Marina,
That's exactly what I need. I overlooked that.
Thank you very much!
Dov
Dov,
I am happy to hear that my assistance was helpful!
Should you have further questions, feel free to contact us at any time.