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.

How to clear the entire data in GridDataBoundGrid

Thread ID:





117193 Sep 2,2014 12:18 AM Sep 12,2014 12:02 AM Windows Forms 3
Tags: GridDataBoundGrid(Classic)
Asked On September 2, 2014 12:18 AM

i tried with this code to clear all the cells Data.. But it's not working Properly....
foreach (Control ctrl in clrctrls)
    if (ctrl.GetType() == typeof(GridDataBoundGrid))
             GridDataBoundGrid Gdbg = ctrl as GridDataBoundGrid;
thanks in Advance.....

Maniratheenam Sehar [Syncfusion]
Replied On September 4, 2014 12:54 AM

Hi Narry,


Thank you for your interest in Syncfusion Products.



Clearing entire data in GridDataBoundGrid

We would like to let you know that we can clear the entire data of a cell in the grid by using the ClearCells method. Please refer the below code snippet.


this.gridDataBoundGrid1.Model.ClearCells(GridRangeInfo.Table(), true);

where the first argument denotes the range of cells that has to be cleared.

Second argument is a Boolean value. True, if you want to clear all the cell information. False, if you want to clear only the text.


Please let us know, if you have any concerns.



ManiRatheenam S

Replied On September 10, 2014 03:11 AM

thanks for your reply.
With your code also i'm not getting clear the all cells data in griddataboundgrid. if it is possible please drop me some example as a attachment. thanks a lot...

Maniratheenam Sehar [Syncfusion]
Replied On September 12, 2014 12:02 AM

Hi Narry,



Sorry for the delay caused.


I’ve attached a sample for your better convenience.

Please let us know, if you’ve any concerns.



ManiRatheenam S

Attachment: GDBsample_d22c9840.zip


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.