回复 3楼foamhome1的帖子
Spread 提供 ComboSelChange 事件捕获 ComboCellType 选择事件。
请使用以下代码测试:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
- cb.Items = new string[3] { "1", "2", "3" };
- this.fpSpread1.Sheets[0].Columns[0].CellType = cb;
- this.fpSpread1.ComboSelChange += new FarPoint.Win.Spread.EditorNotifyEventHandler(fpSpread1_ComboSelChange);
- }
- void fpSpread1_ComboSelChange(object sender, FarPoint.Win.Spread.EditorNotifyEventArgs e)
- {
-
- }
复制代码 |