I have a query where I filter out Data that populates a datagrid and I need to bind a textblock.Text to the sum of the column "Valves_Turned"<sdk:DataGrid x:Name="QueryDetailsDataGrid" AutoGenerateColumns="False" HeadersVisibility="Column" Background="White"
IsReadOnly="True"
HorizontalScrollBarVisibility="Hidden" Grid.RowSpan="2" Margin="0,-6,0,0">
<sdk:DataGrid.Columns>
<sdk:DataGridTextColumn Width="150" Binding="{Binding Attributes[Date]}" Header="Date" CanUserSort="True" SortMemberPath=""/>
<sdk:DataGridTextColumn Width="70" Binding="{Binding Attributes[Valves_Turned]}" Header="Quantity"/>
<sdk:DataGridTextColumn Width="462" Binding="{Binding Attributes[Turned_Valve_Numbers]}" Header="Turned Valve Numbers"/>
</sdk:DataGrid.Columns>
</sdk:DataGrid>
Valves_Turned doesn't have any null values, its a domain with the value defaulted at 0 and has the ability to go up to 25.I just want my textblock.Text to show the sum off all the values in that column.I tried thistext="{Binding Attributes[Valves_Turned].SUM}"
and it doesn't work.