using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using Telerik.Windows.Controls;

namespace RadGridViewSample
{
    public class GridViewMainModel
    {
        public string Name { get; set; }
        public string Value { get; set; }
    }

    public class ViewModel : ViewModelBase
    {
        private ObservableCollection<GridViewMainModel> _gridViewMain;
        public ObservableCollection<GridViewMainModel> GridViewMain
        {
            get => _gridViewMain;
            set
            {
                _gridViewMain = value;
                OnPropertyChanged("GridViewMain");
            }
        }

        public ViewModel()
        {
            GridViewMain = new ObservableCollection<GridViewMainModel>
            {
                new GridViewMainModel { Name  = "A", Value = "aaa" },
                new GridViewMainModel { Name  = "B", Value = "bbb" },
                new GridViewMainModel { Name  = "C", Value = "ccc" },
                new GridViewMainModel { Name  = "D", Value = "ddd" },
                new GridViewMainModel { Name  = "E", Value = "eee" },
                new GridViewMainModel { Name  = "F", Value = "fff" },
            };
        }

    }
}
