Grid control Clering Cell text

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


1 Reply

AD Administrator Syncfusion Team 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.


Loader.
Up arrow icon