public ComplexPropertyBinding() { this.InitializeComponent(); var datacontext = new CustomerInfoViewModel(); this.DataContext = datacontext; this.sfGrid.ItemsSource = datacontext.CustomerDetails; }
public AutoRowHeight() { this.InitializeComponent(); var datacontext = new CustomerInfoViewModel(); this.DataContext = datacontext; this.sfGrid.ItemsSource = datacontext.CustomerDetails; this.sfGrid.ItemsSourceChanged += OnSfDataGridItemsSourceChanged; this.sfGrid.QueryRowHeight += OnSfDataGridQueryRowHeight; }