Hi,
I've added a checkbox column in the ultragrid using grid designer, the problem is that the cell click event is behaving abnormally as i'am trying to toggle the checkbox state,and its not firing events related to cell like cell change , cell update events as desired, mean to say that some times checkbox changes state but no event get fired and sometimes all concerned event get fired .Do any body has any idea what should be the cause of the problem??
The checkbox cell behaves like any other cell. The events are being fired only when the cell loses focus. I think this is not intuitive for a checkbox, so for any grid I have I use the cellclick event and I call PerformAction(ExitEditMode) if the column.StyleResolved is a checkbox.
Where to call PerformAction(ExitEditMode)
I have a button outside the grid. On the click event of the button I update the grid values and call
PerformAction(ExitEditMode) and updategrid , this works file and the cell value is updated.
But i have a check-box column in the grid, on the click of the check-box , the cellchange event should fire. If it is not firing...where exactly do I need to call PerformAction(ExitEditMode)
Hello wanderingmystic,
Did you try this? If it did not help could you please provide a small sample project which reproduces the issue, I will be happy to take a look at it and assist you further.
Hi [wanderingmystic],
Mike is right. Actually I had forgotten to add this line of code to my designer.cs to hook the event.
ugA is the name of the ultrawingrid & ugAAA_CellChange is the method where cellchange event is written
this.ugAA.CellChange +=new Infragistics.Win.UltraWinGrid.CellEventHandler(ugA_CellChange);
Hope this will help!
Mike Saltzman"] Hi, The CellChange event of the grid fires when you change anything in any cell of the grid. This includes clicking on a CheckBox in a grid cell. If the event is not firing, then my guess is that the event is simply not hooked up properly in your application.
The CellChange event of the grid fires when you change anything in any cell of the grid. This includes clicking on a CheckBox in a grid cell.
If the event is not firing, then my guess is that the event is simply not hooked up properly in your application.
I'm experiencing the same problem. I'm clicking a check box in my grid and my properties aren't being updated unless you click on another cell and the cell change event is not firing at all. Perhaps you could direct us to an example of the "Proper" way to hook this up?