Hello,
Here is my question.
We have the GridView, and some columns are bound to the List<MyType>.We've made a custom filter like shown in some of your. demos. Now we need to filter those columns, but the DataMemberBinding is set to the List. Some code:
01.
<
DataTemplate
x:Key
=
"cellTemplate"
>
02.
<
DataTemplate.Resources
>
03.
<
my:PercentsConverter
x:Key
=
"PerConv"
>
04.
</
DataTemplate.Resources
>
05.
<
TextBlock
>
06.
<
TextBlock.Text
>
07.
<
MultiBinding
Converter
=
"{StaticResource PerConv}"
08.
ConverterParameter
=
"MyParam"
>
09.
<
Binding
Path
=
"ListValues"
/>
10.
<
Binding
Path
=
"SomeValues"
/>
11.
</
MultiBinding
>
12.
</
TextBlock.Text
>
13.
</
TextBlock
>
14.
</
DataTemplate
>
01.
var tCol =
new
GridViewDataColumn()
02.
{
03.
Header = temp.ToString(),
04.
CellTemplate = datatemplate,
05.
CellStyleSelector =
new
CellStyleSelector(),
06.
DataMemberBinding =
new
Binding(
"ListValues"
),
07.
IsFilterable =
true
,
08.
FilteringControl =
new
Filtering()
09.
{
10.
Minimum = 0,
11.
Maximum = 100
12.
},
13.
};