Sorry for asking so many questions, but I'm trying to make sure this Grid will work for us before we spend the money to purchase it!
I've set up a DataTemplateSelector for my columns and when I receive the callback in my protected override DataTemplate SelectTemplateCore(object item, DependencyObject container) I can not figure out how to figure out the current column.
The first parameter is my bound object and second parameter (container) is a GridCell, but the ColumnBase field is null. Is there some other way I can get the column name?
Code that creates the column and connects the selector
GridTextColumn gtc = new GridTextColumn()
{
HeaderText = "Code Template",
MappingName = "positionCode",
CellTemplateSelector = templateSelector,
SetCellBoundValue = true,
};
Callback for template selection:
protected override DataTemplate SelectTemplateCore(object item, DependencyObject container)