css selector
am 03.04.2008 17:15:00 von rodcharhey all,
if i have a cssclass for my table row is there anyway to select a particular
column to style without having to assign each tablecell a cssclass?
thanks,
rodchar
hey all,
if i have a cssclass for my table row is there anyway to select a particular
column to style without having to assign each tablecell a cssclass?
thanks,
rodchar
How is the table created?
If you are using a GridView, you can explicitly state your columns and add
styling to a particular column. In fact, it is quite easy to do this with
any bindable control.
If you are bindign, but not using a GridView, a Repeater allows you a lot of
flexibility, as it is essentially repeating HTML.
If you are building a table by scratch, you can use some tools (VS 2008
should allow you to select a column, I know there are other HTML editors
that will), but it is not as easy programatically.
Hope this helps.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:
http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
|
*************************************************
"rodchar"
news:6D655B89-EE32-43B9-8978-7BD0DACEF929@microsoft.com...
> hey all,
> if i have a cssclass for my table row is there anyway to select a
> particular
> column to style without having to assign each tablecell a cssclass?
>
> thanks,
> rodchar
thanks for the insight,
rod.
"Cowboy (Gregory A. Beamer)" wrote:
> How is the table created?
>
> If you are using a GridView, you can explicitly state your columns and add
> styling to a particular column. In fact, it is quite easy to do this with
> any bindable control.
>
> If you are bindign, but not using a GridView, a Repeater allows you a lot of
> flexibility, as it is essentially repeating HTML.
>
> If you are building a table by scratch, you can use some tools (VS 2008
> should allow you to select a column, I know there are other HTML editors
> that will), but it is not as easy programatically.
>
> Hope this helps.
>
> --
> Gregory A. Beamer
> MVP, MCP: +I, SE, SD, DBA
>
> Subscribe to my blog
> http://gregorybeamer.spaces.live.com/lists/feed.rss
>
> or just read it:
> http://gregorybeamer.spaces.live.com/
>
> *************************************************
> | Think outside the box!
> |
> *************************************************
> "rodchar"
> news:6D655B89-EE32-43B9-8978-7BD0DACEF929@microsoft.com...
> > hey all,
> > if i have a cssclass for my table row is there anyway to select a
> > particular
> > column to style without having to assign each tablecell a cssclass?
> >
> > thanks,
> > rodchar
>
>
>