Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Visibility sees data but gridviewcolumn doesn't

$
0
0
<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?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>