Skip to main content
A newer version of this page is available. .
Tab

ASPxGridView.FindEditFormTemplateControl(String) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.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;
}
See Also