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

Refreshing Cell Values while editing a row

Thread ID:

Created:

Updated:

Platform:

Replies:

9464 Dec 18,2003 08:40 PM UTC Dec 19,2003 03:01 PM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 18, 2003 08:40 PM UTC

I have the following situation: GDBG 2 columns, column A and B are dropdowns (ComboBox). Any change in A will reset B. Every time you change column A, binding structure is updated accordingly (column is cleared) and GDBG is refreshed. While editing an existing row, I update A and then B. Once you start doing changes in the row, if you update column A for a second time B doesn''t change. If I do Binder.EndEdit() everytime I change column A, everything works fine but I want to be able to cancel while I''m editing. I check the code and I think you are asking if the column is dirty and the assigning column.value to the property descriptor. When you change column A for the second time, column A and B are dirty, then you set : column A: propertydescriptor.SetValue(column.value) (OK) column B: propertydescriptor.SetValue(column.value) (Wrong) The issue appears when you override propertydescriptor in colum B to an invalid value, so column B is never refreshed with the value coming from the binding. How can I solve this situation? Thanks

Administrator [Syncfusion]
Replied On December 18, 2003 10:06 PM UTC

>>Any change in A will reset B. How are you doing this? Are you trying to do this using grid events, or using something other than grid events? To use grid events to make changes in A affect B, you could try listening to CurrentCellValidating, and if A is being chnaged, you reset B at this point.

Administrator [Syncfusion]
Replied On December 19, 2003 10:14 AM UTC

I''m not using grid events. The real situation is more complex. All the logic resides in the domain model and once it''s executed I''m resfreshing the GDBG. As I mentioned before, it worked fine if you force the grid to be updated (EndEdit) after every change. Is there any solution not using Binder.EndEdit after every change? >>>Any change in A will reset B. > >How are you doing this? > >Are you trying to do this using grid events, or using something other than grid events? To use grid events to make changes in A affect B, you could try listening to CurrentCellValidating, and if A is being chnaged, you reset B at this point.

Administrator [Syncfusion]
Replied On December 19, 2003 03:01 PM UTC

Is there any way you can provide a sample project showing this problem? Or, submit a Direc Trac support incident with a sample?

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

;