Reputation: 531
how to set alignment of label in HeaderTemplate in individual column in gridview in asp .net?
Upvotes: 1
Views: 3495
Reputation: 1494
try
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
for example in the template field tag
and for bound field something like
<asp:BoundField HeaderText="XYZ" DataField="xyz" HeaderStyle-HorizontalAlign="Left"/>
Upvotes: 4