Category / Section
How to load Spreadsheet control inside the StackPanel?
1 min read
Stack Panel is a type of container which can keep on growing as many as children. We added into it and provide equal space for each of its children. So, the ScrollViewer require height and width to define the space limit of Spreadsheet control.
Code snippet
<StackPanel> <Grid Height="750" Width="1000"> <Grid.RowDefinitions> <RowDefinition Height="70"/> <RowDefinition Height="auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Button Content="Load" Grid.Row="0" VerticalAlignment="Top" Width="100" Click="Button_Click" HorizontalAlignment="Left" Margin="10"/> <syncfusion:SfSpreadsheetRibbon Grid.Row="1" syncfusion:SkinStorage.VisualStyle="office2010lBlue"/> <syncfusion:SfSpreadsheet Name="spreadsheet" Grid.Row="2" Visibility="Hidden"/> </Grid> </StackPanel>