This is a migrated thread and some comments may be shown as answers.

[Solved] Problem with Customizing cell appearance

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Donald Norris
Top achievements
Rank 1
Donald Norris asked on 09 Feb 2010, 09:35 PM
I have a user control that I am converting from ASP.NET to ASP.NET AJAX.  In the old control I could apply a skin and also customize cell borders for specific cells based on cell content using the ItemDataBound event handler.  When I try the same thing in the new version the skin wipes out the customizations made to cell borders.  If I don't specify a skin the changes show correctly.  If I specify a skin the the changes do not show.

Any ideas?

Thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Feb 2010, 07:00 AM
Hello Donald Norris,

I hope you are following the documentation Conditional Formatting for rows/cells on ItemDataBound .If you are using custm CSS class, then use the "!important" modifier to force your setting. Here is the example.
CSS:
 
.MyItem 
   color : red !important;     
}  

Could you provide some more information about your scenario if this does not help?

-Shinu.
Tags
Grid
Asked by
Donald Norris
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or