Mike, You need to use the events system. We have grid events for editing already in place. GridCellEditBegin is the event fired when you begin to edit a cell. GridCellEdited is fired when you are done editing a cell. GridCellEditorHit occurs when the user changes the value of the edited cell, though currently it only looks like it fires when the edited cell is a checkbox.
Regards, Nate On Sun, Dec 20, 2009 at 22:20, Mike <[email protected]> wrote: > I wish to validate the value entered into a grid cell and cancel the > edit if it is invalid > > I used the afterCellEdit method but found that both CurrentCellValue and > getValue return the existing (unchanged) value of the cell not the edit > value > > 1. How do I retrieve the edit value for the cell. > > 2. How do I stop the edit value updating the cell value when it is > wrong ie cancel the edit > > Also there may be gliche in the way Classdesigner presents the method ie > ClassDesigner offers afterCellEdit(self) which gives rise to an error > saying three args are required as per API afterCellEdit(self,row,col) > > Many Thanks > > Mike Ayers > > > > _______________________________________________ > Post Messages to: [email protected] > Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users > Searchable Archives: http://leafe.com/archives/search/dabo-users > This message: http://leafe.com/archives/byMID/1261365632.31129.24.ca...@linux > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
