Jo0o0
Jo0o0

Reputation: 531

how to set alignment of label in HeaderTemplate in individual column in gridview in asp .net?

how to set alignment of label in HeaderTemplate in individual column in gridview in asp .net?

Upvotes: 1

Views: 3495

Answers (1)

Mubashir Khan
Mubashir Khan

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

Related Questions