Reputation: 5459
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
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