public void AddColumn(string headerName, IDictionary<string, string> dicFieldName, HorizontalAlign hAlign, int pixel, ButtonType type) { ButtonTemplate buttonTemplate = new ButtonTemplate(dicFieldName); GridColumn column = new GridColumn(buttonTemplate); column.headerName = headerName; column.hAlign = HorizontalAlign.Center; column.unit = Unit.Pixel(pixel); column.type = FieldType.ButtonTemplate; columns.Add(column); AddToGridColumn(column); }
public GridColumn(ButtonTemplate buttonTemplate) { _buttonTemplate = buttonTemplate; }