Hi,
I have this situation where my business object exposes a DateTime property
and I'm binding a GridViewDataColumn to that property using a custom IValueConverter
which "simplify" the date. It converts the datetime to a string, something like "today, 10:15" or
"September 1st, 9:45" (without the current year). The point is that the target value is now a string.
Then I set up a GroupMemberPath to point at "MyProperty.Date" in order to group by day.
I just realized that group headers get populated by accessing that special path and pushing the value
through whatever IValueConverter is specified in the DataMemberBinding.
The only problem is that I cannot set a different ConverterParameter, so the time portion
(which is included in the "simplified" output) gets printed as well (00:00 in all groups).
The point is: wouldn't it be better to have a "GroupMemberBinding" instead of "GroupMemberPath"?
So that if a different conversion is needed for the grouped data to make sense we can specifiy
a different converter and/or converterParameter?
Am I splitting a hair? :-)
Thanks.
-Rodrigo-
I have this situation where my business object exposes a DateTime property
and I'm binding a GridViewDataColumn to that property using a custom IValueConverter
which "simplify" the date. It converts the datetime to a string, something like "today, 10:15" or
"September 1st, 9:45" (without the current year). The point is that the target value is now a string.
Then I set up a GroupMemberPath to point at "MyProperty.Date" in order to group by day.
I just realized that group headers get populated by accessing that special path and pushing the value
through whatever IValueConverter is specified in the DataMemberBinding.
The only problem is that I cannot set a different ConverterParameter, so the time portion
(which is included in the "simplified" output) gets printed as well (00:00 in all groups).
The point is: wouldn't it be better to have a "GroupMemberBinding" instead of "GroupMemberPath"?
So that if a different conversion is needed for the grouped data to make sense we can specifiy
a different converter and/or converterParameter?
Am I splitting a hair? :-)
Thanks.
-Rodrigo-