private bool isSourceGrouped = false;
public bool IsSourceGrouped { get { return isSourceGrouped; } set { isSourceGrouped = value; OnPropertyChanged("IsSourceGrouped"); } } private void Sfgrid_Loaded(object sender, RoutedEventArgs e) { if (viewModel != null && viewModel.IsSourceGrouped) sfgrid.GroupColumnDescriptions.Add(new GroupColumnDescription() { ColumnName = "ProductID" }); |