- var comboBoxCellType = new GC.Spread.Sheets.CellTypes.ComboBox();
- comboBoxCellType.items([
- {text: 'US', value: 'US'},
- {text: 'UK', value: 'UK'},
- {text: 'Germany', value: 'Germany'},
- {text: 'Maxico', value: 'Maxico'}]);
- var colInfos = [
- ...
- {name: 'productLineName', displayName: '产线',cellType:comboBoxCellType,pinned: 'left', size: 170, visible: true}
- ];
- sheet2.autoGenerateColumns = false;
- sheet2.setDataSource(datasource);
- sheet2.bindColumns(colInfos);
复制代码 |