aspx页面代码如下:
<asp:BoundField DataField="addstyle" HeaderText="标题" SortExpression="addstyle" >
<ItemStyle Width="15%" />
<HeaderStyle Width="15%" />
</asp:BoundField>
红色部分为调整列的宽度的代码。
aspx页面代码如下:
<asp:BoundField DataField="addstyle" HeaderText="标题" SortExpression="addstyle" >
<ItemStyle Width="15%" />
<HeaderStyle Width="15%" />
</asp:BoundField>
红色部分为调整列的宽度的代码。