Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   css selector (http://www.velocityreviews.com/forums/t603730-css-selector.html)

rodchar 04-03-2008 03:15 PM

css selector
 
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

Cowboy \(Gregory A. Beamer\) 04-03-2008 03:56 PM

Re: css selector
 
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" <rodchar@discussions.microsoft.com> wrote in message
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




rodchar 04-03-2008 04:04 PM

Re: css selector
 
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" <rodchar@discussions.microsoft.com> wrote in message
> 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

>
>
>



All times are GMT. The time now is 05:08 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.