This is a migrated thread and some comments may be shown as answers.

How to remove top and bottom padding on a grid row

4 Answers 265 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rob Diamant
Top achievements
Rank 1
Rob Diamant asked on 05 Mar 2009, 10:08 PM
How do I remove the Top and Bottom padding to make the rows tighter in my grid. I keep seeing references to "overflow:hidden" but can't find the property.

I am using VB to create the grid with V 2008.3.1125.35

Thanks,

Rob

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Mar 2009, 05:37 AM
Hi Rob,

Try setting the Height for the ItemStyle/AlternatingItemStyle and see whether it meets your requirement.

ASPX:
  
<telerik:RadGrid ID="RadGrid1"  Skin="Hay" ItemStyle-Height="50px"
 AlternatingItemStyle-Height="50px" OnNeedDataSource="RadGrid1_NeedDataSource"  > 
             


Shinu
0
Rob Diamant
Top achievements
Rank 1
answered on 06 Mar 2009, 02:01 PM
No, I want to remove the extra space not add to it.
0
Shinu
Top achievements
Rank 2
answered on 09 Mar 2009, 06:51 AM
Hi Rob,

I am not sure which extra space you are trying to remove. It would be better if you could send a screen shot of your Grid with the issue.

Shinu
0
Rob Diamant
Top achievements
Rank 1
answered on 09 Mar 2009, 01:38 PM
Sorry, we cant post screen prints. But try creating a grid with 9 pt text on a 13 pt line. That means 2 pts above and 2 pts below.

Right now the best it can produce with 9 pt text is: 7pts above and 7pts below, along with 1 pt border.


.Font.Size = 9
.ItemStyle.Height = 13
.BorderStyle = WebControls.BorderStyle.None

Tags
Grid
Asked by
Rob Diamant
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rob Diamant
Top achievements
Rank 1
Share this question
or