VGridControlBase.ForceInitialize() Method

Forces the control to finish its initialization.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v20.1.dll

Declaration

public virtual void ForceInitialize()
Public Overridable Sub ForceInitialize

Remarks

You must call the ForceInitialize method before changing control options when a form is being loaded (for instance, when changing the control's settings in the Form.Load event handler). After the control has been initialized, you can manipulate its settings safely. For instance, you should call the ForceInitialize method before:

  • applying data sorting;
  • expanding and collapsing rows;
  • creating rows and changing their visible state;
  • restoring a layout, etc.
NOTE

Calling the ForceInitialize method before the form's Load event occurs is not in effect. For instance, calling this method in the form's constructor is not in effect.

See Also