<sfGrid:SfDataGrid x:Name="dataGrid"
AutoGenerateColumns="False"
ColumnSizer="Star"
HeaderRowHeight="0"> |
Thread ID: | Created: | Updated: | Platform: | Replies: |
128939 | Feb 16,2017 08:12 PM | Feb 19,2017 11:32 PM | Xamarin.Forms | 4 |
Tags: SfDataGrid |
<syncfusion:GridTemplateColumn MappingName="CustomerID">
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<Label Text="{Binding CustomerID}" TextColor="Black" XAlign="Center" YAlign="Center" />
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn> |
I am coming back to my original question. I cannot figure out how to implement something like that below on sfdatagrid
in sflistview there is HeaderTemplate but i cant find similar, i tried RowHeaderTemplate as shown below but it didnt display at all.
<sfListView:SfListView.HeaderTemplate>
<DataTemplate>
<Grid ColumnSpacing="5" RowSpacing="5" HorizontalOptions="FillAndExpand" BackgroundColor="White">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="20"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="150"></RowDefinition>
</Grid.RowDefinitions>
</Grid>
</DataTemplate>
</sfListView:SfListView.HeaderTemplate>
is this not supposed to be like below
<sfgrid:SfDataGrid.RowHeaderTemplate>
<DataTemplate>
<Label Text="test" />
</DataTemplate>
</sfgrid:SfDataGrid.RowHeaderTemplate>
above works using ShowRowHeader="True" but this is not what i expected or asked.
Basically I am looking for header for sfDataGrid like sfListView header. Not for rows or columns.