回复 1楼叹息的帖子
抱歉,我没有太理解您的意思 。
设置ComboBoxCellType类型:
-
- ComboBoxCellType cmb = new ComboBoxCellType();
- this.FpSpread1.ActiveSheetView.Cells[2, 3].CellType = cmb;
- cmb.Items = new string[] { "a","b","c"};
- cmb.Values = new string[] { "1", "2", "3" };
- cmb.ShowButton = true;
- cmb.UseValue = true;
复制代码
使用选择的数据:
-
- object o = this.FpSpread1.ActiveSheetView.GetValue(2, 3);
- o = this.FpSpread1.ActiveSheetView.GetText(2, 3);
- o = this.FpSpread1.ActiveSheetView.Cells[2, 3].Text;
- o = this.FpSpread1.ActiveSheetView.Cells[2, 3].Value;
复制代码 |