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.

GridGroupingControl: Unhandled exception in control.

Thread ID:

Created:

Updated:

Platform:

Replies:

15588 Jun 23,2004 03:31 AM Jun 24,2004 11:22 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On June 23, 2004 03:31 AM

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

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

Administrator [Syncfusion]
Replied On June 24, 2004 11:22 AM

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; }

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.

;