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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

weird error in datarow.modified...

Thread ID:

Created:

Updated:

Platform:

Replies:

20554 Oct 20,2004 11:03 PM UTC Oct 22,2004 12:22 PM UTC WinForms 4
loading
Tags: Grouping
Angela Chua
Asked On October 20, 2004 11:03 PM UTC

Hi.. I do encounter a weird problem when i try to monitor the datarowstate. The senario goes like this. When i type on the cell. And did not leave cell. I went on to click a next button which will bring me to another record. My program is such that it will prompt me to save changes should i edited anything in the cell. I''m using the gcc_validating & gcc_validated event. But the program is, it did not detect any row.Modified. when i edited COlumn A, I went on to programmatically set the value of Column A to Column B. THe column B''s value changes, but column A''s value still takes on the previous value. It did not take in the new value i''ve changed. Though column B''s value have changed. when i checked the datasouce of the gridgrouping for any datarow.modified, it did not return me any datarow that is modified. Why is this so??? help. Thank you.

Angela Chua
Replied On October 20, 2004 11:08 PM UTC

By the way, i''m using a bar item button to navigate the next button. i''ve found that if i use a windows form button, it can work well. But not the same case for the bar item button.. Been debugging this for the past 2 days. Thank you.

Administrator [Syncfusion]
Replied On October 21, 2004 06:52 AM UTC

When you click on a button that button probably has set CausesValidation = true. Therefore when you click on it the Form will call Control.Validate on the groupingcontrol. If you have a bar item you probably need to manually call GroupingControl.Validate() or Form.Validate(). Let me know if that did not help. Thanks, Stefan

Angela Chua
Replied On October 22, 2004 04:34 AM UTC

Hi, regarding the codes u''ve provided, i ''ve already implemented it in the 1st post.. o i dun think causesvalidation can help...

Administrator [Syncfusion]
Replied On October 22, 2004 12:22 PM UTC

At the top of your code for the handler for the bar button that does the navigation, have you added this line of code? this.Validate(); //here this. refers to the grid''s parent form I would think this would make things behave exactly like clicking a button on the form.

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

;