Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
Clear styles on individual cells set in javascript
posted

I am setting the style on individual cells in javascript using code like this:

oCell._element.className = strRedCellClass;

The styling works properly.  My problem is that if I bind grid to new data and there is not any data in the cell that was previously styled the style remains.  I am clearing the grid on the server side before binding like this:

WebDataGrid1.Columns.Clear()
WebDataGrid1.Rows.Clear()
WebDataGrid1.ClearDataSource()

This does not clear any cell styles that were previously set.  How can I clear the styles?

Parents Reply Children
No Data