Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VGridControlBase.ForceInitialize() Method

In This Article

Forces the control to finish its initialization.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

#Declaration

public virtual void 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