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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl: Refresh after row changed from code

Thread ID:





16071 Jul 6,2004 06:01 AM UTC Jul 6,2004 01:23 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On July 6, 2004 06:01 AM UTC

Hello ! I have the code below that set (null) value to nullable fields for underlying data row. But the changes appear only after some actions from user (changing sizes, collapse or expand child tables e.t.c.) gridGroupingControl1.Refresh() has no effect. Please help me, how to show changes immediately ? Thanks. Code: if (info.record != null && info.field != null) { DataRowView rv = info.record.GetData() as DataRowView; if (rv != null && rv.Row.Table.Columns[info.field.MappingName].AllowDBNull) rv.Row[info.field.MappingName] = DBNull.Value; }

Administrator [Syncfusion]
Replied On July 6, 2004 07:27 AM UTC

Where are you trying to do this code? In Form_Load,a button handler, or in some other event?

Administrator [Syncfusion]
Replied On July 6, 2004 07:42 AM UTC

It is handler of context menu.

Administrator [Syncfusion]
Replied On July 6, 2004 01:23 PM UTC

Is this a GridGroupingControl with nested tables? If so, how are you identfying the info.Record object you are trying to change? If you place a stop in your code that sets things to null, is it being hit? And does infor.Record hold the values you expect? Some things to try would be to set tableDirty. this.gridGroupingControl1.Table.TableDirty = true; this.gridGroupingControl1.Refresh(); or to call this.gridGroupingControl1.Table.InvalidateCounterTopDown


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon