Spread 可以设置图形类单元格显示模式,下面我们就通过 ComboBoxCellType 展示仅在活跃行显示ComboBoxCellType 单元格类型。
效果截图:
png
参考代码:- FarPoint.Win.Spread.CellType.ComboBoxCellType comboBoxType = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
- string[] items = new string[] { "a","b","c","d","e"};
- comboBoxType.Items = items;
- this.fpSpread1.Sheets[0].Columns[0].CellType = comboBoxType;
- this.fpSpread1.ButtonDrawMode = FarPoint.Win.Spread.ButtonDrawModes.CurrentRow;
复制代码 Demo 下载:
测试环境:VS 2010 && Spread for WinForm 5.0
test.zip
(34.82 KB, 下载次数: 1932)
|
|