Back to Devexpress

GridViewSettings.CustomGroupDisplayText Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-gridviewsettings-0cb7bc8b.md

latest1.7 KB
Original Source

GridViewSettings.CustomGroupDisplayText Property

Enables you to provide custom content for group rows.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public ASPxGridViewColumnDisplayTextEventHandler CustomGroupDisplayText { get; set; }
vb
Public Property CustomGroupDisplayText As ASPxGridViewColumnDisplayTextEventHandler

Property Value

TypeDescription
ASPxGridViewColumnDisplayTextEventHandler

A ASPxGridViewColumnDisplayTextEventHandler delegate method allowing you to implement custom processing.

|

Remarks

csharp
...
settings.CustomGroupDisplayText = (s, e) => {
    if (e.Column.FieldName == "OrderDate")
        e.DisplayText = Convert.ToDateTime(e.Value).ToString("dd MMM yyyy hh:mm:ss");
};
...

See Also

Declaring Server-Side Event Handlers

Grid View

GridViewSettings Class

GridViewSettings Members

DevExpress.Web.Mvc Namespace