Hello,
I need to display the data in the format like amount@price (1.23@1 000 000) in the PRO grid. I have created a temple like the following
<DataTemplate x:Key="RequestedOrder">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding RequestedAmount, Converter={StaticResource textFormatConverter}, ConverterParameter=QuantityFormatWithM}"/>
<TextBlock Text="@"/>
<TextBlock Text="{Binding RequestedPrice}"/>
</StackPanel>
</DataTemplate>
Now, I want this to be applied to a cell in the grid.
<DataGrid:DataGridControl.Columns>
<DataGrid:Column Title="Requested" CellContentTemplate="{StaticResource RequestedOrder}"/>
</DataGrid:DataGridControl.Columns>
Certainly, this column doesn't exist in the source list, thus I need to generate it in the runtime.
The code stated above doesn't work as I get the following:"Resolution of the dependency failed, type = "TraderStation.OrderRouting.Views.Blotter.StrategyBlotterPresenter", name = "". Exception message is: The current build operation (build key Build Key[TraderStation.OrderRouting.Views.Blotter.StrategyBlotterPresenter, null]) failed: An attempt was made to normalize an item, which is not in the default list, without a DataType. (Strategy type BuildPlanStrategy, index 3)"
Could you please clarify how can I add a summary column to a DataGrid without modifying the domain object? The same can be applied to adding a Edit/Delete type of buttons to every row in the grid.
Thanks in advance!