2013-05-12 72 views
1

有没有办法改变这个控件的所有背景颜色。 Styles属性具有50个可以更改的部分,尽管我认为我已经更改了所有这些部分,但仍然有几个部分使用默认颜色。ASPxGridView着色

有没有办法让一个特定的颜色有ASPxGridView,例如,我需要它全蓝。

+0

嗨,是不要让有色有特定部位?你看过http://documentation.devexpress.com/#AspNet/CustomDocument3727吗? – 2013-05-13 10:47:15

回答

0

我有一个类似的问题,我想格式化DEVX网格以匹配我的网站的boostrap主题。

Here is what I came up with at this link.下面发布..

<style> 
    table 
    { 
     font-family: "Helvetica Neue",Helvetica,Arial,sans-serif !important; 
     font-size: 14px !important; 
     color: #262626 !important; 
    } 

    tr:nth-child(even) {background: #EEEEEE} 

    .dxgvDataRow_DevEx:hover { background-color: #C0E0FF; } 
</style> 

<script> 
    $(function() { 
     var Grid = $(".dxgvTable_DevEx"); 
     Grid.attr('style', "min-width:300px;max-width:750px;"); 
    }); 
</script>