2014-02-20 34 views
0

我有一個devexpress網格,並且每個列都有過濾器工作,但是如何使過濾器不顯示,但僅在用戶請求時才顯示(默認值爲off或false。 )如何在devexpress網格中將過濾器設置爲off

<dx:ASPxGridView ID="gvPBMCharges" ClientInstanceName="gvPBMCharges"         
          runat="server" AutoGenerateColumns="False" Width="1100px" KeyFieldName="FACILITY_ID" 
          SettingsBehavior-AllowGroup="true" SettingsPager-PageSize="20" DataSourceID="SDSPBMDashboard"> 
          <Settings ShowFilterRow="true" ShowFilterRowMenu="true" ShowGroupPanel="True" ShowFooter="True" /> 
          <SettingsPager> 
           <PageSizeItemSettings Visible="true" Items="10, 20, 50" /> 
          </SettingsPager> 
+0

你在談論自動過濾器行嗎? – Crono

+1

是的,每個列提供數據的過濾器。我們希望默認關閉,並且用戶必須選擇使用這個配件 – Adams

回答

1

就在ShowFilterRow屬性設置爲false

<dx:ASPxGridView (...)> 
    <!-- other stuff --> 
    <Settings ShowFilterRow="false" (...)/> 
    <!-- other stuff --> 
</dx:ASPxGridView> 

事實上,你也可以忘掉設置屬性可言,因爲默認情況下它是false。請參閱online documentation以供參考。

如果您希望在用戶請求中顯示,只需將屬性設置爲true就可以了。

相關問題