Articles in this section
Category / Section

How to load multiple SfDataGrid's to a layout

1 min read

You can able to load multiple SfDataGrid’s in single view based on the requirement with help of Layout<View>. In the below code multiple SfDataGrid has been loaded inside Grid layout and defined using RowDefinition.

MainPage.xaml

<ContentPage.Content>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <sfgrid:SfDataGrid x:Name="dataGrid_first" 
                           ItemsSource="{Binding OrdersInfo}"
                           Grid.Row="0" Margin="0,0,0,40"/>
        <sfgrid:SfDataGrid x:Name="dataGrid_last" 
                           ItemsSource="{Binding StudentInfo}"     
                           Grid.Row="1"/>
    </Grid>
</ContentPage.Content>

 

Screenshot:

Sample link: How to load multiple SfDataGrid to a layout?

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied