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

ASPxGridView.FindHeaderTemplateControl(GridViewColumn, String) Method

Searches for the specified server control contained within the column header‘s template.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public Control FindHeaderTemplateControl(
    GridViewColumn column,
    string id
)

Parameters

Name Type Description
column GridViewColumn

A GridViewColumn descendant that represents the column within the ASPxGridView.

id String

A String value that identifies the control within the specified column’s header.

Returns

Type Description
Control

A Control object that represents the control contained within the specified column header’s template.

Remarks

...
ASPxTextBox text = ASPxGridView1.FindHeaderTemplateControl(ASPxGridView1.Columns[0], "TextBox2")  as ASPxTextBox;
ASPxLabel label = ASPxGridView1.FindHeaderTemplateControl(ASPxGridView1.Columns[0], "lblTestNameColPrime")  as ASPxLabel;
...
See Also