End of pasting (Ctr+V) process notification.

Hello,
I use GridContorl in VirtualMode. I would like to know if it is possible to get notification (event) at the and of data pasting operation.

During pasting several _Grid_SaveCellInfo events are fired. I need to evaluate some data manipulation after all data (all cells) are already pasted, not at cell by cell fashion.

Thank you for help.


1 Reply

SR Sri Rajan Syncfusion Team February 7, 2008 08:11 PM UTC

Hi Michal,

Thank you for your continued interest in Syncfusion products.

Issue:
if it is possible to get notification (event) at the end of data pasting operation?
--------------------------------------------------------

To Validate the data after pasting operation took place in all the cell, you need to handle gridControl1.Model.ClipboardPasted event. Please refer to the code below, It validate the first cell of pasted cells, and check if it is "T", if it is so, then it will changed it as "Tom. Just like you can implement your own validation.


void Model_ClipboardPasted(object sender, Syncfusion.Windows.Forms.Grid.GridCutPasteEventArgs e)
{
if (this.gridControl1[this.gridControl1.CurrentCell.RowIndex, this.gridControl1.CurrentCell.ColIndex].Text.Equals("T"))
{
this.gridControl1[this.gridControl1.CurrentCell.RowIndex, this.gridControl1.CurrentCell.ColIndex].Text = "Tom";
}

}


Please refer to the sample for more details.
http://websamples.syncfusion.com/samples/Grid.Windows/F71619/main.htm

Please let me know if this helps.

Regards,
Srirajan



Loader.
Up arrow icon