Custom DataControlFields For The GridView

Three DataControlFields are available. All are shown in the following example with various properties set.

  • SelectorField - Supports user selection of rows in the grid, so that they all can be acted upon by an external command. Can be optionally bound to a Boolean field to store selections. Supports both single and multiple selection.
  • LookupField - Supports binding to a key/ID column in the datasource. Supply a seperate datasource for the lookup values, and the choices are displayed in a DropDownList, ListBox, or RadioButtonList.
  • BooleanField - Supports binding to a Boolean column in the datasource. Similar to the built-in CheckBoxField but more flexible. It supports a variety of UIs, as well as null values.

 Select ChecksSelect RadioLookup DDLLookup ListBoxBoolean RadioBoolean CheckBoolean DDL
EditItem OneItem OneYepTrueTrue
EditItem TwoItem TwoNopeFalseFalse
EditItem ThreeItem ThreeDunnoNullNull