Tab
A newer version of this page is available.

LayoutGroupBase.FindItemOrGroupByPath(String) Method

Returns a layout item or layout group by its path.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public LayoutItemBase FindItemOrGroupByPath(
    string path
)
Public Function FindItemOrGroupByPath(
    path As String
) As LayoutItemBase

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