.Grid { border: solid 1px #FFFFFF; }
.Grid td
{
border: solid 1px #FFFFFF;
margin: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
text-align: center;
}
.GridHeader
{
font-weight: bold;
background-color: #8b8dbb;
}
.GridItem
{
background-color: #e6e6e6;
}
.GridAltItem
{
background-color: white;
}
<asp:GridView ID=”grdPermitRequest” runat=”server” AutoGenerateColumns=”False” DataSourceID=”srcPermitRequest” Width=”100%” CssClass=”Grid”>
<HeaderStyle CssClass=”GridHeader”></HeaderStyle>
<AlternatingRowStyle CssClass=”GridAtlItem”/>
</asp:GridView>
Great code dude thanks!!!!
Leonel
(From Argentina)
Great code
Tom
(From Czech Republic)
thanks, just what I was looking for.
Wonderful!
Just note css class specified in AlternatingRowStyle ”GridAtlItem”
is misstyped, it should be GridAltItem as in css definition
(from Italy)
awsome thanks!
Thanks! Just what I’m looking for.
Wow thanks buddy been looking for it and now found it :).
谢谢!
[…] So you Datagrid is now editable? Do you want to use CSS to give an excellent look of your grid? just go to this link for Gridview CSS […]
Can I do something similar with datagrid? I want to apply a VisitedLink color to only the datagrid header.
Please advise,
very good
Add more Css for Grid view ……Send me if u possible
Very nice , it is what I was looking for .
Really a Good Example ….
Thanks Ashraf
i didn,t understand
hi it ll help u..atashbahar.com
Nice code..
Excellent job. saved my 2 hrs of time.
Nice code i found to a grid with over and image
http://paginazweb.blogspot.com/
thanks!!
Browsed many sites, at last this is just what I’m looking for.
Thanks a lot
nice code ………..need to learn alot…..
thanks