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

How to delete summary grid

Thread ID:





16607 Jul 20,2004 05:24 PM UTC Jul 20,2004 07:24 PM UTC WinForms 1
Tags: GridControl
Asked On July 20, 2004 05:24 PM UTC

Hi, I use summaryrow class for databound grid. Each time when I bind grid to new data source (run query with different parameters) it adds new summary grid but doesn''t remove previous one. How to delete summary grids to display only one which is for the last retrieved grid? Thanks in advance

Administrator [Syncfusion]
Replied On July 20, 2004 07:24 PM UTC

Try changing summaryGrid to public so you can access it from your form through the summaryRow object. With that change, here is a button handler that completely seems to completely reload a new summaryRow object in the sample from the KB sample. private void button1_Click(object sender, EventArgs e) { this.gridDataBoundGrid1.BeginUpdate(); this.gridDataBoundGrid1.Focus(); this.gridDataBoundGrid1.ResetGridBounds(); this.gridDataBoundGrid1.Controls.Remove(this.sumRow.summaryGrid); this.sumRow.summaryGrid.Dispose(); this.gridDataBoundGrid1.Refresh(); Form3_Load(sender, e); this.gridDataBoundGrid1.EndUpdate(); }


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