Skip to main content
Tab

ASPxGridView.FindEditFormTemplateControl(String) Method

Searches for the specified server control contained within the Edit Form‘s template.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public Control FindEditFormTemplateControl(
    string id
)

Parameters

Name Type Description
id String

A String value that identifies the control within the Edit Form.

Returns

Type Description
Control

A Control object that represents the control contained within the Edit Form.

Remarks

For more information, see Templates.

Example

For a full example, see Grid - Edit Form Templates demo.

protected string GetMemoText() {
     ASPxPageControl pageControl = grid.FindEditFormTemplateControl("pageControl") as ASPxPageControl;
     ASPxMemo memo = pageControl.FindControl("notesEditor") as ASPxMemo;
     return memo.Text;
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FindEditFormTemplateControl(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also