Skip to main content
All docs
V19.2
Tab

LayoutGroupBase.FindItemOrGroupByPath(String) Method

Returns a layout item or layout group by its path.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public LayoutItemBase FindItemOrGroupByPath(
    string path
)

Parameters

Name Type Description
path String

A string value specifying the layout item or group path. It consists of layout item indexes separated by the ‘_’ symbol.

Returns

Type Description
LayoutItemBase

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

Remarks

Use the FindItemOrGroupByPath method to get an item or group by its path. The path consists of 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.FindItemOrGroupByPath("0_2");
Dim layoutItem = exampleFormLayout.FindItemOrGroupByPath("0_2")
See Also