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

ASPxCardView.CustomGroupDisplayText Event

Enables you to provide custom content for group rows.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public event ASPxCardViewColumnDisplayTextEventHandler CustomGroupDisplayText

Event Data

The CustomGroupDisplayText event's data class is ASPxCardViewColumnDisplayTextEventArgs. The following properties provide information specific to this event:

Property Description
Column Gets the data column that refers to the card currently being processed.
DisplayText Enables you to set a custom text for the cell currently being processed. Inherited from ASPxGridColumnDisplayTextEventArgs.
EncodeHtml Gets or sets a value that specifies whether the cell display text keeps any of its values that are HTML as HTML, or instead, strips out the HTML markers. Inherited from ASPxGridColumnDisplayTextEventArgs.
Kind Gets the type of operations with grid data. Inherited from ASPxGridColumnDisplayTextEventArgs.
Value Gets the edit value of the cell currently being processed. Inherited from ASPxGridColumnDisplayTextEventArgs.
VisibleIndex Gets the visible index of the data item (row, card or record) where the processed cell resides. Inherited from ASPxGridColumnDisplayTextEventArgs.

The event data class exposes the following methods:

Method Description
GetFieldValue(Int32, String) Returns the value of the specified data source field in the specified data item (row, card or record). Inherited from ASPxGridColumnDisplayTextEventArgs.
GetFieldValue(String) Returns the value of the specified data source field in the current data item (row, card or record). Inherited from ASPxGridColumnDisplayTextEventArgs.

Remarks

The card view enables you to implement your own logic to group rows, by handling the ASPxCardView.CustomColumnGroup event. In this instance, it may be useful to replace the default text displayed within group rows. To do this, handle the CustomGroupDisplayText event. The event arguments allow you to easily identify group rows and replace their display text.

See Also