[转发]如何在asp.net中获取漂亮的gridview模板 [英] [Repost]how to get beautiful gridview template in asp.net

查看:155
本文介绍了[转发]如何在asp.net中获取漂亮的gridview模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得漂亮的gridview模板以及如何搜索漂亮的gridview模板。请给我一个方法来获取它们。帮助我。谢谢!!!!!

解决方案

< blockquote>你可以去。



http://evonet.com.au/creating-a-great-looking-gridview-with-filtering/ [ ^ ]


使用此css类



 rounded_corners  
{
border 1px solid Black;
- webkit-border-radius 8px;
- moz-border-radius 8px;
border-radius 8px;
溢出 隐藏;
}
rounded_corners td ,。 rounded_corners < span class =code-leadattribute> th
{
border 1px solid Black;
font-family Arial;
font-size 10pt;
text-align center;
}
rounded_corners table table td
{
border -style none;
}





然后将rounded_corners设置为网格视图css类,在

之前使用以下标记作为

 <   /列 >  
< HeaderStyle BackColor = #009900 ForeColor = 黑色 高度 = 30px CssClass = gridheader / >
< span class =code-keyword>< RowStyle BackColor = #FFD0AF / >
< AlternatingRowStyle BackColor = #BCF5A9 / >
< / asp:GridView >


你已经在gridview中创建了很多模板。单击智能标记,然后单击自动格式选项。你将会定义多个模板。



但是如果你想要任何其他模板你的gridview,你可以通过CSS这样做,一些CSS可以在线获得,如果可以创建自己的,然后它会很好:)


How to get beautiful gridview template and how to search beautiful gridview template.Please give me a way to get them.Help me.Thanks!!!!!

解决方案

This you can go for.

http://evonet.com.au/creating-a-great-looking-gridview-with-filtering/[^]


use this css class

.rounded_corners
    {
        border: 1px solid Black;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        border-radius: 8px;
        overflow: hidden;
    }
    .rounded_corners td, .rounded_corners th
    {
        border: 1px solid Black;
        font-family: Arial;
        font-size: 10pt;
        text-align: center;
    }
    .rounded_corners table table td
    {
        border-style: none;
    }



then set "rounded_corners" as your grid view css class, use following tag before
as

</Columns>
            <HeaderStyle BackColor="#009900" ForeColor="Black" Height="30px" CssClass="gridheader"/>
            <RowStyle BackColor="#FFD0AF" />
            <AlternatingRowStyle BackColor="#BCF5A9" />
    </asp:GridView>


You have already got many templates in gridview which are in built. Click on smart tag and then Auto Format option. you will be having multiple templates already defined.

But if you want any other template for ur gridview, you can do so by CSS, Some CSS are available online and if can create your own then it will be good :)


这篇关于[转发]如何在asp.net中获取漂亮的gridview模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆