Thank you for the responses.
I downloaded the grid less than a week ago, so I'm pretty sure I have the latest version.
I definitely see the short version unless I've made a selection, at which time I see the long version. Once I move off the row the short value returns.
I'm sifting through SolidFoundation, but I'm finding it difficult to determine what is going on because of the size of the sample. This is what I've found:
<DataTemplate x:Key="shipperGroupValueDataTemplate">
<local:ShipperIDDictionary Key="{TemplateBinding Content}"
ContentTemplate="{StaticResource shipperGroupDataTemplate}">
</local:ShipperIDDictionary>
</DataTemplate>
I'm really not sure how this is applicable to my problem, but I'm still new to XAML so maybe I'm just missing something. I think once I can figure out what's going on in XAML (and I'm sure there's more to it than the above snippet but there's a ton of XAML in that sample and it's difficult to find out what everything does), I can start to translate what I need to know to work a solution in code.
Is there a chance, though, that I can do something similar to what I've already done? It looks like both the CellEditor and the CellContentTemplate both take a DataTemplate object. I've tried to construct a DataTemplate object for the CellContentTemplate in a manner similar to that of the EditTemplate but I'm not entirely sure what type it should be and what exactly to bind. This is what I'm using for the CellEditor:
DataTemplate editTemplate = new DataTemplate(typeof(ComboBox));
Xceed.Wpf.DataGrid.Markup.CellEditorBindingExtension cellEditorBindingExtension = new Xceed.Wpf.DataGrid.Markup.CellEditorBindingExtension();
editTemplate.VisualTree = new FrameworkElementFactory(typeof(ComboBox));
editTemplate.VisualTree.SetValue(ComboBox.DisplayMemberPathProperty, "Long");
editTemplate.VisualTree.SetValue(ComboBox.ItemsSourceProperty, binding); // Bound to my list of direction items
editTemplate.VisualTree.SetValue(ComboBox.SelectedValueProperty, cellEditorBindingExtension);
editTemplate.VisualTree.SetValue(ComboBox.SelectedValuePathProperty, "Short");
Can something similar not be done for the CellContentTemplate? I found this in SolidFoundation:
<DataTemplate x:Key="shipperDataTemplate">
<TextBlock Text="{Binding CompanyName}"
TextTrimming="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type xcdg:Cell}}, Path=ParentColumn.TextTrimming}"
TextWrapping="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type xcdg:Cell}}, Path=ParentColumn.TextWrapping}"/>
</DataTemplate>
Should I maybe set my DataTemplate to a TextBlock and then somehow bind its TextProperty to the Long property of my type? I tried doing that, but couldn't quite get it (as there is no TextPathProperty), but I think I'm still missing some steps so I'm probably not as close as I think.