locked
Bind Collection of INotifyPropertyChanged list to datgrid in WPF RRS feed

  • Question

  • Hi All,

    In my WPF application i have one grid which i need to Bind different collection.

    To make it generic i  have binded INotifyPropety Changed Collection to grid but all the columns are overlapping on one another.

    Below is my collecction.

    Any Suggestion would be of great help.

            private ObservableCollection<INotifyPropertyChanged> lstFilteredRecords { get; set; }
    
            public ObservableCollection<INotifyPropertyChanged> LstFilteredRecords
            {
                get { return lstFilteredRecords; }
                set
                {
                    lstFilteredRecords = value;
                    if (PropertyChanged != null)
                    {
                        PropertyChanged(this, new PropertyChangedEventArgs("LstFilteredRecords"));
                    }
                }
            }



    Arjun

    Monday, July 18, 2016 2:06 PM

All replies

  • A grid is simple a container with a default method to place its children within the container.  Are you talking about a DataGrid?

    Lloyd Sheen

    Monday, July 18, 2016 3:48 PM
  • it's DataGrid..


    Arjun

    Tuesday, July 19, 2016 7:04 AM
  • Can you show us the XAML for the DataGrid?

    Lloyd Sheen

    Tuesday, July 19, 2016 1:13 PM