Skip to main content
All docs
V24.1
Tab

ASPxGridColumnDisplayTextEventArgs.Kind Property

Gets the type of operations with grid data.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public GridColumnDisplayTextEventKind Kind { get; }

Property Value

Type Description
GridColumnDisplayTextEventKind

An enumeration value.

Available values:

Name Description
Display

The control is being rendered.

DataOperation

Operations with data before the render.

Export

The control prepares data for export.

Remarks

Use the Kind property to analyze the type of the current operation with grid data.

The example below illustrates how to handle grid data if the CustomColumnDisplayText event is raised when a user filters data:

protected void ASPxGridView1_CustomColumnDisplayText(object sender, ASPxGridViewColumnDisplayTextEventArgs e) {
    ASPxGridView gridView = sender as ASPxGridView;
    if(e.Kind != GridColumnDisplayTextEventKind.DataOperation) {
        //var requiredValue = gridView.GetRowValues(e.VisibleIndex, "<COLUMN_FIELD_NAME>");
        // your code
    }
}
See Also