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

clearing summary descriptors

Thread ID:

Created:

Updated:

Platform:

Replies:

32090 Jul 21,2005 12:27 PM UTC Jul 21,2005 12:47 PM UTC WinForms 1
loading
Tags: GridControl
Catinat Velmourougan
Asked On July 21, 2005 12:27 PM UTC

hi I have an application where the user selects cols that have to displayed on the grid. Each time the user selects I clear all the existing lists and create new ones. I clear the following lists : tableDescriptor.Columns.Clear();// don''yt clear these we''ll need them tableDescriptor.VisibleColumns.Clear(); tableDescriptor.GroupedColumns.Clear(); tableDescriptor.SummaryRows.Clear(); tableDescriptor.SortedColumns.Clear(); tableDescriptor.ExpressionFields.Clear(); tableDescriptor.ResetSummaries(); Even after doing this some columns are remaining in a list probably a summarydescriptorcollection, so say i have col1, col2, col3, col4, col5 and then i choose col1 and col2 then the following error comes up SummaryDescriptor col3AutoSizeMaxLength: Field col3 not found. SummaryDescriptor col4AutoSizeMaxLength: Field col4 not found. SummaryDescriptor col5AutoSizeMaxLength: Field col5 not found. How to clear SummaryDescriptorCollection?I cant even find this property.I am using a grid grouping control.

Administrator [Syncfusion]
Replied On July 21, 2005 12:47 PM UTC

You might try adding this code to se if it helps.
foreach(GridSummaryRowDescriptor rd in this.gridGroupingControl1.TableDescriptor.SummaryRows)
	rd.SummaryColumns.Clear();

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.

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

;