DH
Dhivya
May 17, 2011 06:29 PM UTC
Hi,
Can anyone help with this please ?
Thanks,
Dhivya
RC
Rajadurai C
Syncfusion Team
May 24, 2011 10:31 AM UTC
Hi Dhivya,
Thanks for your interest in Syncfusion Products.
We regret for the delay caused in getting back to you.
To prevent the pasting for readonly cells, you can handle the PasteCellText event as below:
// Event Invoker
this.gridControl1.PasteCellText += new GridPasteCellTextEventHandler(gridControl1_PasteCellText);
// Method Invoked
void gridControl1_PasteCellText(object sender, GridPasteCellTextEventArgs e)
{
if (e.Style.ReadOnly)
e.Cancel = true;
}
Regards,
Rajadurai