public Grouping()
        {
            this.InitializeComponent();
            var datacontext = new SalesInfoViewModel();

            this.DataContext        = datacontext;
            this.sfGrid.ItemsSource = datacontext.YearlySalesDetails;
        }
        public UnBoundRow()
        {
            this.InitializeComponent();
            var datacontext = new SalesInfoViewModel();

            this.DataContext = datacontext;

            totalSales         = new Dictionary <string, double>();
            totalSelectedSales = new Dictionary <string, double>();
            percentSales       = new Dictionary <string, double>();

            this.SfDataGrid.ItemsSource         = datacontext.YearlySalesDetails;
            this.SfDataGrid.Loaded             += OnSfDataGridLoaded;
            this.SfDataGrid.QueryRowHeight     += OnSfDataGridQueryRowHeight;
            this.SfDataGrid.QueryUnBoundRow    += OnSfDataGridQueryUnBoundRow;
            this.SfDataGrid.SelectionChanged   += OnSfDataGridSelectionChanged;
            this.SfDataGrid.CurrentCellEndEdit += OnSfDataGridCurrentCellEndEdit;
        }