473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to change grid lines color using css and/or skin?

Hi,

I'm using skin and css to style a gridview. I've run into something that
seems like a very trivial problem - I can't change color of lines within a
gridview. Setting the border color has not affect on the lines. Could
someone please let me know how to do that?

Thanks,
Bogdan
Nov 5 '08 #1
1 9393
On Nov 5, 6:15*pm, "Bogdan" <bog...@nocompany.comwrote:
Hi,

I'm using skin and css to style a gridview. *I've run into something that
seems like a very trivial problem - I can't change color of lines within a
gridview. *Setting the border color has not affect on the lines. *Could
someone please let me know how to do that?

Thanks,
Bogdan
Hi Bogdan

Try this

<asp:gridview ID="GW" runat="server">
<rowstyle cssclass="GridViewRow" />
</asp:gridview>

and

..GridViewRow td
{
border: 1px solid green;
}

Hope this helps
Nov 5 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Geoff Soper | last post by:
I would like to arrange some photos in a simple grid. Each photo is either x pixels by y pixels or y pixels by x pixels (i.e. all the same size, arranged either in the landscape or portrait...
0
by: James lennon | last post by:
I am attempting to format a Window.Forms.DataGrid. How do I set the color for the grid lines in the data grid header. The GridLineColor attribute in the table style does not set the color of the...
2
by: simon | last post by:
hello, new to vb.net, have a few questions about DataGrid. I have a dataGrid that is working pulling a dataset back from a stored proc and binding to the datagrid for display the datagrid's...
0
by: Stuart Shay | last post by:
Hello All I am working on creating a generic theme for my GridView Controls. In My Skin File I have something like this. <asp:GridView SkinId="CustomPager" CssClass="gridView"...
5
by: Enigma Curry | last post by:
I'm playing around with matplotlib for the first time. I'm trying to make a very simple histogram of values 1-6 and how many times they occur in a sequence. However, after about an hour of...
10
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
4
by: bobh | last post by:
Hi All, In report design view is there a way to Not display the grid lines But display the grid dots? thanks bobh
0
by: Czechtim | last post by:
Hello, I have problem with databinding. I created small application using structure that I need to demonstrate problem. I need to change content of label when changing content of property...
1
by: thanawala27 | last post by:
Hi, I wanted to change the style, width and color of the grid lines for my X/Y scatter graph. Basically, I want to distinguish the minor grid lines and the major grid lines. Any help is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.