PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

How do I get an asp.net gridview row with rounded corners?

 
 
henk gijsbert
Guest
Posts: n/a
 
      18th Jun 2010
Hi asp.net people,

I have to implement a look and feel for a asp.net gridview where on
hovering a row, it should be highlighted with a (gradient) bar with
round corners. I have come as far as to highlight it with a gadient
bar, but unto now without the round corners as follows: I made an
image with the gradient and use a using a style sheet tot repeat that
image in horizontal direction (repeat-x) accros the cells of the row:

..grid .datatable .row:hover
{
background-position:center;
background-repeat:repeat-x;
background-image:url(../img/hover.png);
}

To add the rounded corners I have made images hoverFirst.png and
hoverLast.png with the rounded corners for respectively the left and
right ends of the highlighting bar. But now I'm stuck: I do not know
how to insert them at the beginning and the end of the bar. When I
place hoverFirst.png in cell[0] it should not repeat but placed only
once and the rest of the cell should be filled with the image
hover.png, that is without the round corners.

How can I accomplish this?

Any other technique to get rounded corners for highlighting a gridview
row are also very welcome.

Regards,
Henk
 
Reply With Quote
 
 
 
 
henk gijsbert
Guest
Posts: n/a
 
      21st Jun 2010
On 18 jun, 16:07, henk gijsbert <h...@paralax.nl> wrote:
> Hi asp.net people,
>
> I have to implement a look and feel for a asp.net gridview where on
> hovering a row, it should be highlighted with a (gradient) bar with
> round corners. I have come as far as to highlight it with a gadient
> bar, but unto now without the round corners as follows: I made an
> image with the gradient and use a using a style sheet tot repeat that
> image in horizontal direction (repeat-x) accros the cells of the row:
>
> .grid .datatable .row:hover
> {
> * * background-position:center;
> * * * * background-repeat:repeat-x;
> * * * * background-image:url(../img/hover.png);
>
> }
>
> To add the rounded corners I have made images hoverFirst.png and
> hoverLast.png with the rounded corners for respectively the left and
> right ends of the highlighting bar. But now I'm stuck: I do not know
> how to insert them at the beginning and the end of the bar. When I
> place hoverFirst.png in cell[0] it should not repeat but placed only
> once and the rest of the cell should be filled with the image
> hover.png, that is without the round corners.
>
> How can I accomplish this?
>
> Any other technique to get rounded corners for highlighting a gridview
> row are also very welcome.
>
> Regards,
> Henk


Nobody an idea??
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rounded Corners ANONYMOUS Microsoft Frontpage 15 22nd Dec 2009 10:05 PM
Re: Rounded Corners Steve C. Orr [MCSD, MVP, CSM, ASP Insider] Microsoft ASP .NET 0 27th Mar 2007 04:55 AM
Gridview rounded corners? Cindy Lee Microsoft C# .NET 5 10th Jan 2007 01:38 AM
Re: Rounded Corners Kathy J Microsoft Powerpoint 0 18th Aug 2004 05:33 PM
Rounded Corners Steve Jones Microsoft Powerpoint 0 18th Aug 2004 05:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:08 PM.