Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Column "splitters" and row spacing
posted

Hi guys,

I have two questions: 

1) Which property do I set, or what style do I have to customize in order to display vertical splitters between columns in the grid?

2) How do I change the spacing between rows in a grid?

By setting the BorderBrush property for the DataRecordCellArea, I get a border around an entire record. When I do this, the spacing between the records becomes very evident, so it looks a bit strange...

I have tried setting the BorderThickness property for the CellValuePresenter, but this does not provide the desired result because there seems to be some margin or padding applied somewhere making the CellValuePresenter not stretch vertically to the DataRecordCellArea...

Basically, I want my gird to look as much as possible like the Excel grid.

Thanks!

 

  • 138253
    Offline posted

    Hello TerjeRugland,

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

  • 138253
    Offline posted

    Hello Terje,

    I have researched your scenario and I attached a sample project which shows a column’s splitter colored in red and spacing between records colored in green. I have used the default styles for LabelPresenter and CellValuePresenter, which is best practice when you want to retamplate a control. For further retemplating I suggest you do so. You can find the default styles in the DefaultStyles folder, which is installed by default here: C:\Program Files (x86)\Infragistics\NetAdvantage 2010.3\WPF\DefaultStyles  and in it you can use:  \DataPresenter\DataPresenterGeneric_Express.xaml file to copy the style for the control you need to retemplate.

    Please note, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well.

    Feel free to write me if you need further assistance.

    XamDataGridSplitterColorAndRowSpacing.zip