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

Refreshing Cell Values while editing a row

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

3 Replies

AD Administrator Syncfusion Team 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.


AD Administrator Syncfusion Team 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.


AD Administrator Syncfusion Team 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?

Loader.
Up arrow icon