AD
Administrator
Syncfusion Team
August 15, 2004 08:22 AM UTC
1) The class Syncfusion.Windows.Forms.ExceptionManager has static members that you can use to control how the grid handles exceptions. You can subscribe to the event Syncfusion.Windows.Forms.ExceptionManager.ExceptionCatched to get any exception thrown, and handle them yourself.
Another option is to try to avoid the exceptions by handling CurrentCellValidating. In that event, you can do your own validation on grid.CurrentCell.renderer.ControlText to see if it is a valid value for the cell at grid.CurrentCell.RowIndex and grid.CurrentCell.ColIndex. If not, set grid.CurrentCell.ErrorMessage and e.Cancel = true.
2) Here is a forum thread on this topic.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=5027