Articles in this section
Category / Section

How to refresh unbound fields at runtime in GridGroupingControl?

1 min read

Solution:

By default, the unbound columns in GridGroupingControl need a manual repaint to reflect changes in cell values. To automatically update its cell values, the INotifyPropertyChanged interface has to be implemented and the ReferencedFields property of UnboundField has to be set.

The INotifyPropertyChanged raises the ListChanged events and thereby refreshes the changed values in the grid cell. The setting of ReferencedFields property to UnboundField informs the engine to update the unbound field whenever change in UnboundField is detected.

C#

this.gridGroupingControl1.TableDescriptor.UnboundFields["UnboundField"].ReferencedFields = "fieldName";

VB

Me.gridGroupingControl1.TableDescriptor.UnboundFields("UnboundField").ReferencedFields = "fieldName"

Sample Links:

RefreshUnboundFields-CS1054253529.zip

RefreshUnboundFields-VB1217209965.zip

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied