aspnet-devexpress-dot-web-feb09bdf.md
Represents a data column that displays Boolean values.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class GridViewDataCheckColumn :
GridViewEditDataColumn
Public Class GridViewDataCheckColumn
Inherits GridViewEditDataColumn
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.
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()
Object StateManager CollectionItem WebColumnBase GridViewColumn GridViewDataColumn GridViewEditDataColumn GridViewDataCheckColumn
See Also