I need to apply a data template to a grid view cell using a cell template selector similar to the approach provided in one of the grid view demo's. My template looks like this:
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource dataRowConverter}}" Foreground="Gray" />
</DataTemplate>
The data grid is bound to a data table, so I use the dataRowConverter to try to get the right column value out of the data row that is passed to it by this template. My problem is that in the converter, I do not have the index to the data row to get the corresponding value for the grid view cell being processed. How am I able to pass as a converter parameter the current cell header or name to the converter? Thanks for your help.