Hi
Is it possible to set the padding and margin of the grid header? I've tried the styles from post: http://forums.infragistics.com/forums/p/35442/206984.aspx#206984
but they didn't work. Is there a minimum set that can't be overriden?
Also the grid has this first column where filter, arrow etc icons are shown, is it possible to hide this or set the width to a smaller size?
Hello,
Regarding the margins, I tested it with the following code and it works correctly :
<igDP:XamDataGrid BindToSampleData="True" x:Name="xdg">
<igDP:XamDataGrid.Resources>
<Style TargetType="{x:Type igDP:LabelPresenter}">
<Setter Property="Margin" Value="5"/>
</Style>
</igDP:XamDataGrid.Resources>
</igDP:XamDataGrid>
The area in front of the cells is the RecordSelectorExtent. You can hide it by setting the RecordSelectorLocation property to None or decrease the size by adjusting the RecordSelectorExtent value of the FieldLayoutSettings.
The margin that needs to be is not outside the header but inside. See screenshot.
I can see in the default styles that the padding is bound to the outermost Grid's Marging property.
<Grid x:Name="labelCntr" Margin="{TemplateBinding Padding}" Background="#00000000">
If you want to change that, you would have to retemplate the LabelPresenter. The default styles you can find in the DefaultStyles directory in the Infragistics folder.