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.
Unfortunately, activation email could not send to your email. Please try again.

GGC Error Display

Thread ID:

Created:

Updated:

Platform:

Replies:

39935 Jan 20,2006 12:25 PM Jan 24,2006 05:22 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 20, 2006 12:25 PM

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 05:22 AM

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.

CS5.zip

CONFIRMATION

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.

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.

;