我有一个 UltraWinGrid,后面有一个数据集。在数据表的 Row_Changing 事件处理程序中,我对数据进行了一些检查,如果它无效则抛出异常。我想在我的应用程序中显示此异常的消息。但是,UltraGrid 似乎捕获了异常并显示它自己的带有异常的消息框。如何防止显示消息框,并在我的应用程序中捕获该错误?
private static void Row_Changing( object sender, DataRowChangeEventArgs e )
{
if( <some logic to test the row values>)
throw new Exception("you can't do that");
}