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

RepositoryItemCheckedComboBoxEdit.ClearDataAdapter() Method

In This Article

Forcibly nullifies the internal data adapter. Call this method before you dynamically provide a data source for the current repository item within a ShownEditor event handler.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void ClearDataAdapter()

#Remarks

This method is relevant when CheckedComboBoxEdit objects that correspond to the current RepositoryItemCheckedComboBoxEdit are used in the in-place mode and data sources for them are dynamically provided via ShownEditor event handlers.

In the in-place mode, if you handle the ShownEditor event of the container control to provide a custom data source for the CheckedComboBoxEdit editor, call the ClearDataAdapter method before you assign a data source to the RepositoryItemCheckedComboBoxEdit.DataSource property. This method forcibly sets the internal data adapter that is intended to manage data within the CheckedComboBoxEdit to null.

See this article to learn more about repository items.

See Also