I am trying to compact the data presented by xamdatagrid. I have gotten the field labels smaller but cannot get rid of the spacing between them and the rows when using multiple columns.
I have tried these styles:
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igDP:LabelPresenter}" > <Setter Property="Padding" Value="2,0,2,0" /> <Setter Property="Margin" Value="2,0,2,0" /> </Style> <Style TargetType="{x:Type igDP:HeaderPresenter}" > <Setter Property="Padding" Value="2,0,2,0" /> <Setter Property="Margin" Value="2,0,2,0" /> </Style> <Style TargetType="{x:Type igEditors:XamNumericEditor}"> <Setter Property="Padding" Value="0"/> <Setter Property="Margin" Value="0"/> </Style> <Style TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="Padding" Value="0"/> <Setter Property="Margin" Value="0"/> </Style> <Style TargetType="{x:Type igEditors:XamMaskedEditor}"> <Setter Property="Padding" Value="0"/> <Setter Property="Margin" Value="0"/> </Style> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Padding" Value="0"/> <Setter Property="Margin" Value="0"/> </Style> <Style TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Padding" Value="0"/> <Setter Property="Margin" Value="0"/> </Style> <Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="Padding" Value="0"/> <Setter Property="Margin" Value="0"/> </Style> </igDP:XamDataGrid.Resources>
Attached is a jpg of the window...
Any ideas would be GREATLY appreciated!
Hello,
This is what I am getting when I run a small sample with the styles that you have provided. You can see outlined with red, that the records are closely to one another. Which spacing are you referring to?
I am trying to get rid of the dead-space between the field labels and cells. The jpg I attached had ~ 40% wasted area. It's more apparent with Theme="Aero" FontSize="8". Your samples shows the records packed tightly but the 'stacked' cells in each record are not.
I don't think you included:
<Style TargetType="{x:Type igDP:LabelPresenter}" > <Setter Property="Padding" Value="2,0,2,0" /> <Setter Property="Margin" Value="2,0,2,0" /> </Style>
(it shows the wasted header spacing better)
I have attached another jpg with the areas I am trying to get rid of marked.
Thanks
Just wondering if you saw my previous reply...