Hello,
I took the default style for CellValuePresenter from DataPresenterGeneric_Express.xaml and am modifying it. Among other things, I'm setting the background color of a cell by using a value converter:
<Style TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Background" Value="{Binding Path=Value, Converter={StaticResource cellColorFromDetectionDataTypeConverter}, RelativeSource={RelativeSource Self}}"/>
I would now like to use the "parameter" parameter to the value converter. Specifically, I'd like to pass the row number to the converter. How may I alter my xaml to do so?
Thanks,
Dave
Hello Dave,
You can use a IMultiValueConverter instead of IValueConverter and you can pass both the value and the record index.
You can see an example of a similar approach here.