Skip to main content
Tab

ASPxFormLayout.FindItemByPath(String) Method

OBSOLETE

Use the FindItemOrGroupByName method instead.

Returns a layout item by its path.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[Obsolete("Use the FindItemOrGroupByName method instead.")]
public LayoutItemBase FindItemByPath(
    string path
)

Parameters

Name Type Description
path String

A string value specifying the layout item’s path that is layout item indexes separated by the ‘_’ symbol.

Returns

Type Description
LayoutItemBase

An LayoutItemBase object that is a layout item with the specified path.

Remarks

Use the FindItemByPath method to get an item by its path. The path is the item indexes (from the root-level item to item being sought) separated by the ‘_’ symbol.

The code sample below returns a reference to the third item of the first group.

var layoutItem = exampleFormLayout.FindItemByPath("0_2");
Dim layoutItem = exampleFormLayout.FindItemByPath("0_2")
See Also