Hi,
You can use
GridView ItemStyle
property to align your text. For GridView BoundField or TemplateField there in as property called
ItemStyle HorizontalAlign
, You can write
ItemStyle-HorizontalAlign="Center"
As for example,
<asp:BoundField ItemStyle-HorizontalAlign="Center" DataField="ProductID" HeaderText="ProductID" ReadOnly="True"
SortExpression="ProductID" />
Hope this will help !