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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

catch input before stored in connected datasource

Thread ID:





8367 Nov 4,2003 05:14 AM UTC Nov 4,2003 10:20 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 4, 2003 05:14 AM UTC

Hi, i have a problem when editing in filtered columns and leave the row. The Message "there is no row at position ..." occours. A workaround is to write the edited value direkt in the underlying datatable, but i cannot locate a particular time to catch the edited value. Qestion1: How can i editing in filtered columns without get the message "There is no row at..."? Question2: Where is the correct point to catch user input before the value is written in the connected datasource (is there a documentation available which events will occurres) ? greetings markus

Administrator [Syncfusion]
Replied On November 4, 2003 10:20 AM UTC

To work around the first problem, you can handle the CurrentCellAcceptedChanges event. In there if you are editing the filtered column, you can save the value to the underlying DataTable. Attached is a little sample showing how you might go about it. (It assumes your datatable has a primary key column that cannot be edited by the user.) You can use the RowLeave event to catch the grid before it tries to move things to the datasource. You can use grid.Binder.IsEditing to check whether the row has been edited or not as this event is hit for every leave.


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon