回复 4楼swejet的帖子
获取编辑状态文本值方法如下:
- public MainWindow()
- {
- InitializeComponent();
- this.gcspread1.EditChange += new EventHandler<GrapeCity.Windows.SpreadSheet.UI.EditCellEventArgs>(gcspread1_EditChange);
- }
- void gcspread1_EditChange(object sender, GrapeCity.Windows.SpreadSheet.UI.EditCellEventArgs e)
- {
- SpreadView sv = sender as SpreadView;
- string cellText = (sv.CellEditor as TextBox).Text;
- }
复制代码 |