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

Databinding question...

Thread ID:

Created:

Updated:

Platform:

Replies:

24436 Feb 3,2005 06:20 PM UTC Feb 3,2005 09:32 PM UTC Windows Forms 1
loading
Tags: GridControl
Jim Frapper
Asked On February 3, 2005 06:20 PM UTC

Greetings, I have a bulk entry screen with a databound grid on it. The users have the ability to add, edit, delete rows from the grid. While testing my users are a little unhappy with the default behavior of adding rows. Here is a test scenerio. User inputs one complete new row of data into the first row. However, until the user move to the next row the data is not committed to my datasource(i.e. the little pencil in the left hand grey area is showing). So when they hit save, no data is in my datasource. What I would like is that when the user types anything into the grid it is immediately recognized in the datasource. Is there some sort of binding context setting to accomplish this? I guess I could loop through the grid rows themselves. Suggestions?! Cheers, JF

Administrator [Syncfusion]
Replied On February 3, 2005 09:32 PM UTC

Hi Jim, it normally should be sufficient if both your Save button and the grid control have .CausesValidation property set to true. In such scenario the grid''s Validate method will get called which then will commit changes in the AddNew row to the underlying datasource. If the Save command is a menu handler or toolbar button you need to manually call Form.Validate(). If you manually want to commit changes in the AddNewRow you can call GridDataBoundGrid.Binder.EndEdit() Stefan

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.

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

;