How do you add vertical lines between fields such as Excel?
You might be interested in seeing the fixed fields functionality of the grid:
http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=xamDataGrid_Fix_Fields.html
Let me know if this is what you are looking for.
Thank you for the response, however fixed fields is not what I am looking for. There should be a option to add vertical lines that border each field column so the users know where on column ends and the next one starts.
Thanks.
Hello,
Are you looking for the same Excel header selection behavior shown on the screenshot? You might achieve something similar with the grid when you set the LabelClickAction to SelectField:
<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings LabelClickAction="SelectField"/>
</igDP:XamDataGrid.FieldSettings>
You could also use the following style for the CellValuePresenter to override the color and the thickness of the borders:
<Grid.Resources>
<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="BorderBrush" Value="Red"/>
<Setter Property="BorderThickness" Value="2,0,2,0"/>
</Style>
</Grid.Resources>
Let me know if this is what you are looking for or I'm missing something.
From your post, its seems the only way to get these vertical cell borders is to reStyle the CellValuePresenter.
Is this correct?
Hi,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Thank you for your responses. I understand how to accomplish this now.