1

有没有办法改变这个控件的所有背景颜色。Styles 属性有大约 50 个可以更改的部分,虽然我认为我更改了所有部分,但我仍然有几个部分具有默认颜色。

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

4

1 回答 1

0

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

这是我在这个链接上想出的。下面发..

<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>
于 2015-11-28T15:13:46.387 回答