2011-05-16 83 views

回答

3

設置在模板的列寬屬性列的寬度,

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

接受的答案有點不爲我工作,所以我嘗試這個解決方案,它的伎倆。

<asp:TemplateField HeaderText="Text" HeaderStyle-Width="5"/> 
+0

雖然這可能會提供一個問題的答案,但它有點簡潔。請添加一個解釋,爲什麼這會回答問題,以及它與接受的答案有何不同。 – IInspectable 2015-12-16 22:35:10

+0

完成。這確實很簡單。 – 2015-12-17 09:28:55

相關問題