Home » FAQ » ASP.NET » DataGrid » How to right align cells in the Datagrid when using BoundColumn
Commonly used in conjunction with RTL languages, you can do so as follows:
<asp:BoundColumn DataField ='PRoductname' HeaderText ='ProductName' ItemStyle-HorizontalAlign='Right'></asp:BoundColumn>
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with