<ListView Grid.Row="7" Grid.ColumnSpan="3"
DataContext="{Binding ElementName=listviewdatabase, Path=SelectedItem }"
IsSynchronizedWithCurrentItem="True"
Visibility="{Binding Path=Success, Mode=OneWay, Converter={StaticResource SuccessfullToHidden}}"><ListView.View><GridView><GridViewColumn Header="Error Code" DisplayMemberBinding="{Binding Path=ErrorCode}"/></GridView></ListView.View></ListView>
private int m_Success;
public int Success
{
get { return m_Success; }
set
{
m_Success = value;
OnPropertyChanged("Success");
}
}
private string m_ErrorCode;
public string ErrorCode
{
get { return m_ErrorCode; }
set
{
m_ErrorCode = value;
OnPropertyChanged("ErrorCode");
}
}
If the error code and success are in the same dataset. Why can my list see one and not the other?