DataGridComboBoxColumns

Sep 1, 2008 at 2:25 PM
Would it be better to use a ContentPresenter as the cell template of the DataGridComboBoxColumn?

Now you use a TextBlock, which works well when the ItemSource is a list of String.

A ContentPresenter would also inflate a textblock if the item is a String. If the item is a type of entity object, eg Customer, and you supply a DataTemplate for the Customer type, the ContentPresenter will use the DataTemplate.

Since the ComboBox itself supports DataTemplates, I think the DataGridComboBoxColumn should as well.
Coordinator
Oct 3, 2008 at 4:52 PM
The DataGridComboBoxColumn will be updated in the v1 release to support a ContentPresenter instead of a TextBlock.