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.v22.1.dll

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