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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataBoundGrid crashes when pasting full row of data containing incorrect data type

Thread ID:

Created:

Updated:

Platform:

Replies:

60089 Apr 27,2007 04:16 AM UTC Apr 27,2007 04:52 PM UTC WinForms 1
loading
Tags: GridControl
Frankie
Asked On April 27, 2007 04:16 AM UTC

Hi, I'm using Syncfusion 4.2.0.37.

I created a GridDataBoundGrid instance and bound it to a data table containing two columns that have string and integer data types.

If I *click on the row header* (this is important) paste a line of text "ABC123", it works but if i paste "ABCDEF", it crashes the whole application immediately.

It seems that none of the validation event handlers are called - is there anyway to work around this? Must I change the numeric column to string and validate the cell myself?

Thanks.

Administrator [Syncfusion]
Replied On April 27, 2007 04:52 PM UTC

To do validation when paste in a GridDataBoundGrid, you need to subscribe to grid.Model.PasteCellText event. There you can validate e.Text based on e.RowIndex, e.ColIndex, e.Style, etc. If you want to not paste a cell but continue pasteing other cells, you can set e.Cancel = true. If you want to stop all pasteing, you set e.Abort = true.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;