我在這裏遇到了GridView的一些困難,客戶端要求我在單元格之間放置一些空間,通常我會做CellSpacing =「5」但是看起來它不工作,我嘗試了一些東西,一切都被改寫......Asp.net GridView忽略CellSpacing屬性
代碼我想:
<asp:GridView ID="gvShoppingCart" runat="server" CellSpacing="5" Width="100%" AutoGenerateColumns="false">
<some-formating-columns-here />
</asp:GridView>
什麼實際呈現的是:
<table cellpadding="0" cellspacing="0" summary="">
<thead>
<tr class="AspNet-GridView-Header">
<th scope="col">Produit</th>
<th scope="col"> </th>
<th class="Center" scope="col">Quantité</th>
<th class="Right" scope="col"> Prix Unitaire </th>
<th class="Right" scope="col">Prix</th>
</tr>
</thead>
<body-columns-here />
</table>
我沒有什麼補充的想法沒有w ...
有什麼建議嗎?
您能否確認您使用的是哪個版本的ASP.NET框架,以及您在哪種瀏覽器中看到這種行爲?另外,你有沒有定義任何控制適配器? (您應該檢查/ App_Browsers文件夾中的.browser文件)。 –