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 ?
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;
ADAdministrator Syncfusion Team July 6, 2004 03:27 AM
Where are you trying to do this code? In Form_Load,a button handler, or in some other event?
ADAdministrator Syncfusion Team July 6, 2004 03:42 AM
It is handler of context menu.
ADAdministrator Syncfusion Team July 6, 2004 09:23 AM
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;
or to call