Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

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

WebCustomUserControlViewItem Class

A View Item that displays a specific data-bound control in a UI.

Namespace: DevExpress.ExpressApp.Web.Editors

Assembly: DevExpress.ExpressApp.Web.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Web

#Declaration

public class WebCustomUserControlViewItem :
    ViewItem,
    IComplexViewItem

#Remarks

In certain scenarios, you may need to add a data-bound ASP.NET Web Forms User Control to a Detail or Dashboard View. To do this, add a IModelCustomUserControlViewItemWeb child node to the required Views | <DetailView> | Items node.

DataBoundControlWeb3

Set the child node’s IModelCustomUserControlViewItemWeb.CustomControlPath property to the file name of the custom Web User Control (e.g., WebUserControl1.ascx).

For a complete example of using the WebCustomUserControlViewItem, refer to How to: Show a Custom Data-Bound Control in an XAF View (ASP.NET Web Forms) topic.

As the WebCustomUserControlViewItem supports IComplexViewItem interface, it has access to the XafApplication object and IObjectSpace of the current View.

Tip

To access the Web User Control, implement a custom Controller that is activated for the View containing the WebCustomUserControlViewItem and use the ViewItem.Control property.

#Implements

#Inheritance

Object
ViewItem
WebCustomUserControlViewItem
See Also