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

Grid control Clering Cell text

Thread ID:

Created:

Updated:

Platform:

Replies:

73746 May 16,2008 11:31 AM UTC May 22,2008 07:16 AM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 16, 2008 11:31 AM UTC

Hi

I am using GRid Controls what is procedure To clean all the text From GridControl's cells.I tried GridControl1.clear(true);


Thanks
Pankaj Sardana


Administrator [Syncfusion]
Replied On May 22, 2008 07:16 AM UTC


Hi Pankaj,

Thanks for the interest in Syncfusion Grid.

GridControl1.clear() is used to clear the contents of the selected cells. You can use ClearCells to Clear the cells of the Grid. Please refer the following code snippet that shows how we can clear the cells of the Grid.


private void button1_Click(object sender, EventArgs e)
{
this.gridControl1.Model.ClearCells(GridRangeInfo.Table(), true);
}


Please refer the sample in the below link that illustrates the above.

http://websamples.syncfusion.com/samples/Grid.Windows/F73746/main.htm

Please let me know if you have any questions.

Regards,
Asem.


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

;