We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Paste Validation in GridCell

Hi, How can I apply string validation on a particular cell of the GridControl. In a Gridcontrol there is a text filed for input plz guide me how I can apply string validation on that particular cell when I copy some text from somewhere else and paste it. I have tried ClipboardCanPaste event but could not get the desired result.
Regards,
Ali

1 Reply

HA haneefm Syncfusion Team October 29, 2007 01:30 PM UTC

Hi Ali,

One way to handle this is to subscribe to the grid.Model.PasteCellText event and validate the value to be pasted there, and if it is invalid, set e.Cancel = true.

Please refer the below forum thread for more details:
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=38745

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon