2013-05-12 29 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>