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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl: Unhandled exception in control.

Thread ID:





15588 Jun 23,2004 07:31 AM UTC Jun 24,2004 03:22 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On June 23, 2004 07:31 AM UTC

Hello. This can be simply repeated by samples provided with suite. Using Essential Grid Samples Custom Summary sample. Start to fill new row and specify values only for first 2 columns, then press header (as to resort by column), message about NULLs not alowed appears, then press column second time. Exception occures: ************** Exception Text ************** System.InvalidCastException: Object cannot be cast from DBNull to other types. at System.DBNull.System.IConvertible.ToDouble(IFormatProvider provider) at System.Convert.ToDouble(Object value) at CustomSummary.Form1.Table_QueryCustomCount(Object sender, CustomCountEventArgs e) at Syncfusion.Grouping.Table.OnQueryCustomCount(CustomCountEventArgs e) at Syncfusion.Grouping.Record.GetCustomCount()

Administrator [Syncfusion]
Replied On June 23, 2004 09:40 AM UTC

By the way, how to disable the feature (header sorting) for whole control.

Administrator [Syncfusion]
Replied On June 24, 2004 03:22 PM UTC

Hi Vadim, thanks for reporting the problem with the exception when clicking twice on the column header. This is a bug and we''ll get that fixed. Regarding the question how to disable clicking on the column header try this: this.gridGroupingControl1.TableControlCellClick += new GridTableControlCellClickEventHandler(gridGroupingControl1_TableControlCellClick); private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e) { Element el = e.TableControl.Table.DisplayElements[e.Inner.RowIndex]; if (el is ColumnHeaderRow) e.Inner.Cancel = true; }


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

Live Chat Icon For mobile
Live Chat Icon