Back to Devexpress

ASPxGridView.FindHeaderTemplateControl(GridViewColumn, String) Method

aspnet-devexpress-dot-web-dot-aspxgridview-dot-findheadertemplatecontrol-x28-devexpress-dot-web-dot-gridviewcolumn-system-dot-string-x29.md

latest2.2 KB
Original Source

ASPxGridView.FindHeaderTemplateControl(GridViewColumn, String) Method

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public Control FindHeaderTemplateControl(
    GridViewColumn column,
    string id
)
vb
Public Function FindHeaderTemplateControl(
    column As GridViewColumn,
    id As String
) As Control

Parameters

NameTypeDescription
columnGridViewColumn

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

TypeDescription
Control

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

|

Remarks

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

See Also

Grid View

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace