Skip to content

LexDX/how-to-edit-nullable-bool-field-with-the-aspxgridview-and-aspximage-in-edititemtemplate-e2318

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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?).
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.


About

.NET, ASP.NET Web Forms, ASPxGridView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 56.0%
  • Classic ASP 44.0%