I've got a grid with column of checkboxes not bound to anything. When a range of checkboxes needs to be clicked, instead of having to click them one by one, I'd like to provide Windows like behavior with a Shift-Click like ability. Like use of Up,Down,Ctrl,Home,End would be nice too but just Shift-Click would be better than nothing. I haven't found some inherent setting to make any of this happen.
I haven't even been able to check whether or not Shift or ShiftKey is pressed from CellChange yet whereas it'd be easy from KeyDown or KeyUp which aren't used here.
please clearly tell how to make all checkbox as default false
and if user want to click on it can be changed to false or true.
thanks
(I sometime hate to use infragistics component)
You might also look at the event manager and set the changedcell event to false when the user clicks the cell. Just don't forget to set it back to true.
If you're using the CellChange event, the Value will not have been updated at this point yet. You could either try to convert the Text of the cell to a boolean, or you could look at the value of the editor, assuming that the cell is still in edit mode.
-Matt
I have ultrawingrid and I added an unbound column as checkbox
to make the value of checkbox as default to false I did it in IntializeRowEvent, which all checkbox is false;
but when user want to check one of the checkbox, it doenst change from false to true, I used CellChangeEvent and I did as follow:
{
}
else
I put a debugpoint in cellChangeEvent and I notice after cellchangeEvent it goes back to InitilaizeRow and change it to false again
Then I added a boolean variable "isChecked" and as default is false.But when it comes to cellchangeEvent it changed it to true and I checked in InitializeEvent if it true, do nothing...
I feel this is not right way, is there better way?
Waisted time to debug, but not find an answer. Finally I restarted the computer and it work. Don't know why?