Back to Devexpress

ASPxVerticalGridHeaderFilterEditorInitializeEventArgs.Row Property

aspnet-devexpress-dot-web-dot-aspxverticalgridheaderfiltereditorinitializeeventargs.md

latest1.8 KB
Original Source

ASPxVerticalGridHeaderFilterEditorInitializeEventArgs.Row Property

Gets the row to which the processed editor belongs.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public VerticalGridDataRow Row { get; }
vb
Public ReadOnly Property Row As VerticalGridDataRow

Property Value

TypeDescription
VerticalGridDataRow

The row.

|

Remarks

Web Forms:

aspx
<ASPxVerticalGrid ID="ASPxVerticalGrid1" onHeaderFilterEditorInitialize="ASPxVerticalGrid1_HeaderFilterEditorInitialize">
    ...
</ASPxVerticalGrid>
csharp
protected void ASPxVerticalGrid1_HeaderFilterEditorInitialize(object sender, ASPxVerticalGridHeaderFilterEditorInitializeEventArgs e) {
    if (e.Row.FieldName == "ProductName") {
        // your code
    }
}

MVC:

csharp
settings.HeaderFilterEditorInitialize = (s, e) => {
    if (e.Row.FieldName == "ProductName"){
        // your code
    }
};

See Also

ASPxVerticalGridHeaderFilterEditorInitializeEventArgs Class

ASPxVerticalGridHeaderFilterEditorInitializeEventArgs Members

DevExpress.Web Namespace