Microsoft Developer
Microsoft Developer

Reputation: 5459

Set each column of grid view to different width

I have a gridview which contains template fields and I want to set different widths for each column. How can I achieve this?

Upvotes: 1

Views: 4607

Answers (1)

Nanda
Nanda

Reputation: 614

Set the width of the column in width attribute of the template columns as,

<asp:TemplateField FooterText="ADD">
                    <ControlStyle Height="10px" Width="20px" />
</asp:TemplateField>

Upvotes: 3

Related Questions