SfTreeGrid: Grid without borders and without First Column
Hello,
I have used the SfTreeGrid. Please I would like to indicate me as change the style of the grid so that it has no borders, I try to modify the style of the cell, but I have obtained the shown in the image (attached), also try changing the whole style of the TreeGridView, but I did not get results.
You could also do me the favor to tell me how to hide the first column that appears in the image (attached).
<Style TargetType="syncfusion:TreeGridCell">
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<syncfusion:SfTreeGrid x:Name="treeGrid"
AllowEditing="False"
ChildPropertyName="SubItems"
ItemsSource="{Binding ExplorerItems}"
CellStyle="{StaticResource customStyleTreeGridCell}">
Thanks.
Attachment: stylecell_e2b863d.zip
I have used the SfTreeGrid. Please I would like to indicate me as change the style of the grid so that it has no borders, I try to modify the style of the cell, but I have obtained the shown in the image (attached), also try changing the whole style of the TreeGridView, but I did not get results.
You could also do me the favor to tell me how to hide the first column that appears in the image (attached).
<Style TargetType="syncfusion:TreeGridCell">
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<syncfusion:SfTreeGrid x:Name="treeGrid"
AllowEditing="False"
ChildPropertyName="SubItems"
ItemsSource="{Binding ExplorerItems}"
CellStyle="{StaticResource customStyleTreeGridCell}">
Thanks.
Attachment: stylecell_e2b863d.zip
SIGN IN To post a reply.
1 Reply
GT
Gnanasownthari Thirugnanam
Syncfusion Team
October 23, 2017 01:48 PM UTC
Hi Andres,
Please find the response for your queries.
|
Query 1: change the style of the grid so that it has no border |
You can change the border thickness for expander cell like TreeGridCell by writing style to TreeGridExpanderCell as like below code example.
| |
|
Query 2: how to hide the first column |
You can hide the expander column (First column) by override the SetColumnWidth method in TreeGridColumnSizer as like below code example.
|
We have prepared the sample based on your requirement, you can download the same from below mentioned location:
Sample location:
Please let us know if this helps you.
Regards,
Gnanasownthari T.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
AN Andres
- Oct 20, 2017 09:14 PM UTC
- Oct 23, 2017 01:48 PM UTC