Apply a style to datagrid

S

Stef

Hello folks,
I don't know if this is possible but here it goes:
I want to define a CSS class that I will specify in the CssClass
property of a datagrid which will apply styles to every aspect of that
datagrid.

Like, I would like to define a class that puts the ItemTemplate's back
color to AliceBlue with a Verdana 7 pt font then, in that class I would
also define that the fonts in the header is 12 pt and BOLD and black
and so on...

I know I can assign a CssClass to every template in the inline html
code. I was just wondering if I could apply a single class to a
DataGrid which would do all the job within the CSS class. If it's
possible, someone is willing to show me or post a link?

Thanks a lot!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top