![]() |
|
GTP.NET FAQ 10813Is it possible to cancel OnGridCellChanged events?
Please note that this article
refers to the GTP.NET Jump to article- 2007-02-16 14:52:00 - Email plexityHide Question I am using C#, Windows application. CODE: private void gantt1_OnGridCellSelectChanged(Cell cell, CellSelectChangedEventArgs cellSelectChanged) if(temp) { } } Answer The event fires when changes occur in the Selected property of the Cell. So in princip you will get one call when the first cell is unselected and another call when the new cell is selected. To null out the action here you can simply toggle the Select value back; cell.Selected = ! cellSelectChanged.NowSelected //( possible recursive problem?) But I think that you want to make sure that the Grid.GridStructure.FocusedCell is not changed, so something like this: private void grid1_OnBeforeFocusedCellChange(PlexityHide.GTP.Grid grid, BeforeFocusedCellChangeEventArgs beforeFocusChange)
|
"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%" |
| ? 1999-2006 PlexityHide.com Grastensvagen 24, S-163 45 Spanga Sweden E-mail: support@plexityhide.com |