PdfRpt.FluentInterface.MainTableAdHocColumnsConventionsBuilder.AddColumnItemsTemplate C# (CSharp) Method

AddColumnItemsTemplate() public method

Custom template of the in use property, controls how and what should be rendered based on their column names in each cell of this column. It can be null. If you don't set it, new DisplayAsText() template will be used automatically.
public AddColumnItemsTemplate ( string name, IColumnItemsTemplate template ) : void
name string
template IColumnItemsTemplate
return void
        public void AddColumnItemsTemplate(string name, IColumnItemsTemplate template)
        {
            if (_builder.ColumnNamesItemsTemplates == null)
                _builder.ColumnNamesItemsTemplates = new Dictionary<string, IColumnItemsTemplate>();

            _builder.ColumnNamesItemsTemplates.Add(name, template);
        }