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 08:20 AM

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 7, 2003 09:03 PM

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 05:45 AM

Try ClearCells(GridRangeInfo.Table, true); Stefan


KI Kis October 16, 2003 12:51 AM

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 04:45 AM

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 06:18 PM

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

Loader.
Live Chat Icon For mobile
Up arrow icon