Infragistics XamDataGrid - How to style HeaderLabelArea seperators

5.1k Views Asked by At

My development environment is C#. I am trying to either change the colors or remove the separators in an Infragistics XamDataGrid header as shown in the image below.

header

The column 'Name' between Mapping and Price Name is edited using Snoop, therefore it is not white anymore.

1

There are 1 best solutions below

1
On

xamGrid.FixedRowSeparatorStyle should be the property you are looking for...

Have a look at this designers style guid for some helpful pointers

EDIT: Doh!, well spotted alhalama, my bad... hopefully this should help... taken from: here

"The gap could be caused by margings/paddings inside the control template. For example on the main Grid:

<Grid x:Name="labelCntr" Margin="2,4,2,4" Background="#00000000">

Another thing you could do is set the background of the header record to the same color as the label presenters so that the gap will have the same color. You can do that with a style for the DataRecordPresenter and creating a trigger for the RecordType property"