Home Forums WPF controls Xceed DataGrid for WPF Issue with CellContentTemplate

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #23487 |

    I am attempting to use a CellContentTemplate in the same manner as the “SolidFoundation” example, in particular, the “CurrencyConverter”. In C#, I made the converter public in the namespace for my window. In XAML, I assigned the key of “currencyConverter” and defined the DataTemplate within Window.Resources. No errors or exceptions. At runtime, my data is bound but the CellContentTemplate is ignored.

    Here is my XAML defining the grid:
    <xcdg:DataGridControl x:Name=”grid”>
    <!– FIXME: this gets completely ignored for some reason –>
    <xcdg:Column FieldName=”Ask”
    CellContentTemplate=”{StaticResource currencyCellContentTemplate}”/>

    The databinding is done within the C# code by setting grid.ItemsSource to a DataGridCollectionView. I also noticed that other DataGridControl.Columns settings seem to be ignored in this configuration.

    Imported from legacy forums. Posted by Ed (had 2180 views)

    Xceed Support
    Post count: 5658

    Can you provide more details on your issue?

    Like the Data Binding code in question, the details concerning the data items bound to the DataGridControl, what other Column properties seems not to work?

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2964 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.