Asp.net 如何像我的网站中的其他RadGrid一样设置普通html表(或ASP表)的样式?
我想有一个普通的表,看起来像雷达网格,有没有一种简单的方法可以使用RadGrid样式(记住主题)?使用类似工具,您可以检查RadGrid生成的表 上显示的示例给出了以下结果:Asp.net 如何像我的网站中的其他RadGrid一样设置普通html表(或ASP表)的样式?,asp.net,radgrid,html-table,Asp.net,Radgrid,Html Table,我想有一个普通的表,看起来像雷达网格,有没有一种简单的方法可以使用RadGrid样式(记住主题)?使用类似工具,您可以检查RadGrid生成的表 上显示的示例给出了以下结果: <table class="rgMasterTable rgClipCells"> <thead> <th class="rgHeader" scope="col">header</th> </thead> <tbody>
<table class="rgMasterTable rgClipCells">
<thead>
<th class="rgHeader" scope="col">header</th>
</thead>
<tbody>
<td class="rgRow">cell</td>
</tbody>
</table>
标题
细胞
将此处所述的类添加到您自己的表中时,应复制rad网格中的样式。我一直在玩这个,您似乎需要使用某些样式将表包装为div(s)-可能是因为主题?也许我还是错过了什么,但这是我唯一能让它工作的方法
<div class="RadGrid RadGrid_Sunset">
<table class="rgMasterTable rgClipCells">
<thead>
<th class="rgHeader" scope="col">header</th>
</thead>
<tbody>
<td class="rgRow">cell</td>
</tbody>
</table>
</div>
标题
细胞
我已按原样将您的代码片段添加到我的页面中,但它似乎不起作用。还有其他想法吗?没有你的网页链接就不行。每个版本的类名可能不同。我必须添加一个具有另一种样式的div,请在本文中查看我自己的答案。谢谢你给我指明了正确的方向。