Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to avoid space between rows in gridview.,
Posted
Updated 19-Jul-12 1:40am
v2

 
Share this answer
 
hi

There are various ways to show the space between the rows. Like:
1. Use the css style with the padding and appy to the GridView.
2. Use the ItemStyle-Height property of the templated GridView.
3. Insert a new table row between the rows of GridView.
For css, you can create it like below:
CSS
.space td {
border-color:Blue;
border-style: solid;
border-bottom-width: 20px
}

Now apply this style to the rows as :
ASP.NET
<asp:gridview id="GridView1" runat="server" alternatingrowstyle-cssclass="space" rowstyle-cssclass="space" xmlns:asp="#unknown" />

Also you can go through the below link where you cna get some more examples:
http://forums.asp.net/p/1201271/2093194.aspx[^]
Thanks&Regards
sandeep
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900