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

Return to the first status

when I have seted some Syle in the gridControl,how can I reset it to the status before I do that.

6 Replies

AD Administrator Syncfusion Team September 30, 2003 12:20 PM UTC

If you want to clear out all style settings you can call ClearCells. I you only want to remove a specific style properties you should ChangeCells and specify StyleModeType.Exclude. Let me know if you need more info. Stefan


KI Kis October 8, 2003 01:03 AM UTC

I want to clear out all style settings.By the way,how to call ClearCells? I don't know how to set the first parameter.. ^_^


AD Administrator Syncfusion Team October 8, 2003 09:45 AM UTC

Try ClearCells(GridRangeInfo.Table, true); Stefan


KI Kis October 16, 2003 04:51 AM UTC

thanks Stefan , I use gridControl1.ClearCells(GridRangeInfo.Table(),true) to reset a gridControl,but sometimes it working well and sometimes not. why?


AD Administrator Syncfusion Team October 16, 2003 08:45 AM UTC

Are some of you cells readonly, or maybe this is a griddataboundgrid with some readonly columns in your datasource? Can you post a little sample project showing when this call does not work?


KI Kis October 16, 2003 10:18 PM UTC

Sorry,I set readdonly is ture.now it working well. thanks again!

Loader.
Up arrow icon