Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to edit Nullable field with the ASPxGridView and ASPxImage in EditItemTemplate

$
0
0

Starting with version 2011.1:
I recommend that you use ASPxCheckBox instead of the demonstrated solution since the control supports the Undefined (Grayed) checked state, see ASP.NET Check Box - New Render State For Multiple Controls for details.


Prior version 2011.1:
The example demonstrates how to edit the Boolean field that allows writing "null" values (Nullable<Boolean>, Boolean?).
As the standard checkbox doesn't allow having three states (checked, unchecked and gray), the scenario can be implemented with the ASPxImage and three images. The images are taken from the default CSS sprite used by the ASPxEditors suite.


Viewing all articles
Browse latest Browse all 7205

Trending Articles