[英]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. 我有一个包含模板字段的gridview,我想为每列设置不同的宽度。 How can I achieve this? 我该如何实现?
Set the width of the column in width attribute of the template columns as, 将模板列的width属性中的列宽设置为
<asp:TemplateField FooterText="ADD">
<ControlStyle Height="10px" Width="20px" />
</asp:TemplateField>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.