public void CreateBands(string columnManagerKey) { var columnManagerParameters = _columnManagers[columnManagerKey]; columnManagerParameters.Parameters.Options.BandOptions.BandIdentifier = columnManagerParameters.ColumnManager.Identifier; DynamicBandedGridHelper.AddDynamicBand(columnManagerParameters.Parameters); }
public void RemoveBands(string columnManagerKey) { var columnManagerParameters = _columnManagers[columnManagerKey]; columnManagerParameters.Parameters.Options.BandOptions.BandIdentifier = columnManagerParameters.ColumnManager.Identifier; if (columnManagerParameters.Parameters.ExistingBand != null) { DynamicBandedGridHelper.RemoveDynamicBand(columnManagerParameters.Parameters.ExistingBand, columnManagerParameters.Parameters.Options.BandOptions); } else { DynamicBandedGridHelper.RemoveDynamicBand(columnManagerParameters.Parameters.ExistingGridView, columnManagerParameters.Parameters.Options.BandOptions); } }
public static void GetUnboundColumnData(CustomColumnDataEventArgs e, IDictionary <string, IDynamicPropertyList> propertyDictionary) { if (propertyDictionary == null) { return; } var bandedColumn = e.Column as BandedGridColumn; if (bandedColumn == null) { throw new ArgumentException("Only possible with column of type BandedGridColumn"); } var band = bandedColumn.OwnerBand; var bandKey = band.Tag.ToString(); if (propertyDictionary.ContainsKey(bandKey)) { DynamicBandedGridHelper.GetUnboundColumnData(e, propertyDictionary[bandKey]); } }