TreeListSettings.HtmlDataCellPrepared Property

Enables the settings of individual cells to be changed.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v21.1.dll


public TreeListHtmlDataCellEventHandler HtmlDataCellPrepared { get; set; }

Property Value

Type Description

A TreeListHtmlDataCellEventHandler delegate method allowing you to implement custom processing.


The HtmlDataCellPrepared event is raised for each data cell within the TreeList when the corresponding table cell has been created. You can handle this event to change the style settings of individual cells.

The processed cell is identified by the event parameter’s TreeListHtmlDataCellEventArgs.Cell property. Its value is returned by the TreeListHtmlDataCellEventArgs.CellValue property. The column and node where the processed cell resides can be obtained via the TreeListHtmlDataCellEventArgs.Column and TreeListHtmlRowEventArgs.Row properties.


The following example illustrates how to hide the tree list’s parent nodes cell content.

.HideCell { 
    visibility: hidden;
See Also