How to bind a DataGrid column to an indexed property in XAML?
My property which I try to bind is:
I have set the ItemsSource for the DataGrid to be my custom object.Code:Private m_Correlations As New Dictionary(Of Integer, Double) Public Property Correlations(ByVal key As Integer) As Double Get If m_Correlations.ContainsKey(key) Then Return m_Correlations(key) Else Return Nothing End If End Get Set(value As Double) m_Correlations(key) = value End Set End Property
Trying to bind the column to the first indexed item with
orCode:FieldName="Correlations[0]"
...doesn't work. The whole column appears with no data in it.Code:FieldName="Correlations(0)"


Reply With Quote
