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.
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.
ADAdministrator Syncfusion Team October 21, 2004 01:52 AM
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.
ACAngela ChuaOctober 21, 2004 11:34 PM
Hi, regarding the codes u''ve provided, i ''ve already implemented it in the 1st post.. o i dun think causesvalidation can help...
ADAdministrator Syncfusion Team October 22, 2004 07:22 AM
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.