Skip to main content
Tab

GridViewDataCheckColumn Class

Represents a data column that displays Boolean values.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class GridViewDataCheckColumn :
    GridViewEditDataColumn

Remarks

Use the GridViewDataCheckColumn.PropertiesCheckEdit property to access column editor settings. The check box column editor does not contain an input element.

Note

The CustomColumnDisplayText and CustomColumnDisplayText events are not in effect for the check column as the grid filters only the column values and ignores its display text. To specify a custom display text for the check box column, use the DisplayTextChecked and DisplayTextUnchecked properties.

Concept

Example

Web Forms:

<dx:ASPxGridView ID="Grid" ...>
    <Columns>
        ...
        <dx:GridViewDataCheckColumn FieldName="Discontinued" />
    </Columns>
</dx:ASPxGridView>  

MVC:

@Html.DevExpress().GridView(settings => {
    settings.Name = "grid";
    settings.Columns.Add(column => {
        column.FieldName = "Discontinued";
        column.ColumnType = MVCxGridViewColumnType.CheckBox;
    });
}).Bind(Model).GetHtml()

Online Demos

See Also