示例#1
0
        public void CreateBands(string columnManagerKey)
        {
            var columnManagerParameters = _columnManagers[columnManagerKey];

            columnManagerParameters.Parameters.Options.BandOptions.BandIdentifier =
                columnManagerParameters.ColumnManager.Identifier;
            DynamicBandedGridHelper.AddDynamicBand(columnManagerParameters.Parameters);
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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]);
            }
        }