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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to delete summary grid

Thread ID:

Created:

Updated:

Platform:

Replies:

16607 Jul 20,2004 05:24 PM UTC Jul 20,2004 07:24 PM UTC WinForms 1
loading
Tags: GridControl
Jenny
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(); }

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

;