Kostya
Kostya

Reputation: 141

WinForms XtraGrid column filter checked listbox actual data

Y've already helped me a lot. But I have another trouble. I have an XtraGrid with data. Two columns configured to show checked list box for filtering. For example one column for States and other for Cities. This listboxes contains column data, so user can check multiple values and grid will ilter up its view. But when you choose filter in first column (for example one State) and then open second column filter its listbox contains all data (with all available Cities, but not the Cities from filtered State) from grid but not from currently filtered view.

Is there any method to update filter checkedlistbox to show only currenlty visible values for column?

Upvotes: 1

Views: 909

Answers (1)

Milen
Milen

Reputation: 8877

You can achieve such functionality by setting ShowAllTableValuesInCheckedFilterPopup to false. More on the subject here: https://documentation.devexpress.com/#windowsforms/DevExpressXtraGridViewsBaseColumnViewOptionsFilter_ShowAllTableValuesInCheckedFilterPopuptopic

Where to find the option

Upvotes: 2

Related Questions