We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC Error Display

Thread ID:





39935 Jan 20,2006 05:25 PM UTC Jan 24,2006 10:22 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 20, 2006 05:25 PM UTC

I am catching the gridGroupingControl1_ExceptionRaised event and trying to display my own error message. However the error message display stays behind the dropdown from the column (using foreign key words). I assume this is because I pass the owner to the MessageBox.Show method as the form displaying the GGC and not the popup that is created to display the entry of the column''s value. Is there a way to either change the exception text that is being displayed or get the window handle to assign for the message box?

Administrator [Syncfusion]
Replied On January 24, 2006 10:22 AM UTC

Hi Chuck, By calling the MessageBox.Show method with out the owner argument will solve the mentioned issue. MessageBox.Show("My Exception Message....", "MyExceptionTitle"); But if you want to pass the owner argument compulsorily for some reason then you can pass the drop down container as the owner as mentioned below. MessageBox.Show((this.gridGroupingControl1.TableModel.CurrentCellRenderer as GridDropDownCellRenderer).DropDownContainer,"My Exception Message....", "MyExceptionTitle"); To trigger the ExceptionRaised event in the attached sample delete the value of “InsideCategoryID” column of any row in the Child_CategoryChildName column''s drop down and press enter. Regards, Calvin.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon