Forces the control to invalidate its client area and immediately redraw itself and any child controls.

Namespace:  C1.Win.C1ReportDesigner
Assembly:  C1.Win.C1ReportDesigner.2 (in C1.Win.C1ReportDesigner.2.dll)

Syntax

C#
public override void Refresh()
Visual Basic
Public Overrides Sub Refresh

Remarks

Use this method when you change field properties, create new fields or change report/section dimensions outside the designer, to ensure that the report and sections are wide enough to accommodate the new fields.

Examples

The code below shows the event handler for the PropertyGrid control that is bound to the designer selection. When the user changes a field, section, or report property using the designer, the application calls the Refresh method so the changes will be visible in the designer.
Copy CodeC#
// property value changed, update designer
private void _propGrid_PropertyValueChanged(object s,
                     PropertyValueChangedEventArgs e)
{
    // show changes in the designer
    _designer.Refresh();

    // remember the document is dirty
    if (!_dirty)
    {
        _dirty = true;
        UpdateUI();
    }
}

See Also