private void fpSpread1_CellDoubleClick(object sender, CellClickEventArgs e) { Com.Bing.Forms.InputDialog dlg = new Com.Bing.Forms.InputDialog("编辑文本", fpSpread1.ActiveSheet.ActiveCell.Text, true, true); if (dlg.ShowDialog() == DialogResult.OK) { sheet.ActiveCell.Text = dlg.TextResult; btn_save.Enabled = true; } }
private void fpSpread1_CellDoubleClick(object sender, CellClickEventArgs e) { Com.Bing.Forms.InputDialog dlg = new Com.Bing.Forms.InputDialog("编辑文本", fpSpread1.ActiveSheet.ActiveCell.Text, true, true); if (dlg.ShowDialog() == DialogResult.OK) { sheet.ActiveCell.Text = dlg.TextResult; CellStruct cellStruct = dt.Rows[e.Row][e.Column] as CellStruct; if (!CellStruct.IsNullOrEmpty(cellStruct)) { cellStruct.Context = dlg.TextResult; } tool_Save.Enabled = true; } }