[英]How to set filter to off as default in devexpress grid
我有一個devexpress網格,並且每列都有過濾器,但是如何使過濾器不顯示,而僅在用戶請求時才顯示(默認為off或false)。
<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>
只需將ShowFilterRow
屬性設置為false
:
<dx:ASPxGridView (...)>
<!-- other stuff -->
<Settings ShowFilterRow="false" (...)/>
<!-- other stuff -->
</dx:ASPxGridView>
實際上,您也完全可以忘記設置屬性,因為默認情況下它是false
。 請參閱在線文檔以供參考。
如果要在用戶請求中顯示它,則只需在任何事件上將屬性設置為true
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.