Posted 25 March 2019, 12:49 am EST
Hello,
i am working on the following scenario and need the suggestions as i am new to spreadsheet:
When i copy(ctrl+c) and paste(ctrl+v) any content it in a spreadsheet cell, i want the “Change” event to be called automatically which is not happening currently.
For the copy paste event i am using the “ClipboardPasted” event. The code is as following:
this.sprdRoomBed.ClipboardPasted += new FarPoint.Win.Spread.ClipboardPastedEventHandler(this.sprdRoomBed_ClipPasted);
private void sprdRoomBed_ClipPasted(object eventSender, ClipboardPastedEventArgs eventArgs)
{
FourFiveEvents.CopyClipPasted();
}
public void CopyClipPasted()
{
DefRoomBed.Spreadsheet_pasted();
}
public void Spreadsheet_pasted()
{
mForm.cmdApply.Enabled = true; //Enable the cmdApply button once data is pasted from the clipboard to a data cell in spreadsheet.
}
In my application there exist a “Change” event which gets triggered when i type some text in the spreadsheet data cell but the “Change” event is not getting triggered when i copy paste the content in the spreadsheet data cell.
Please Help!!
Abhishek Rana