Posted 4 June 2021, 3:19 am EST - Updated 4 October 2022, 8:40 am EST
Hello.
How to show scrollbars in order not to hide the last row ?
Is there any property?
.NET 5
C1.WPF.Grid.Ja 5.0.20211.61
Forums Home / ComponentOne / WPF Edition
Posted by: info on 4 June 2021, 3:19 am EST
Posted 4 June 2021, 3:19 am EST - Updated 4 October 2022, 8:40 am EST
Hello.
How to show scrollbars in order not to hide the last row ?
Is there any property?
.NET 5
C1.WPF.Grid.Ja 5.0.20211.61
Posted 4 June 2021, 3:24 am EST
It’s about .NET5 FlexGrid.
Posted 4 June 2021, 4:01 am EST
Hi Mikihiro,
Thank you for sharing the snapshot.
You can set GridCellsPanel’s (present inside FlexGrid template) Margin property inside FlexGrid’s Loaded event as follows:
private void FlexGrid_Loaded(object sender, RoutedEventArgs e)
{
var scrollViewer = flexGrid.Template.FindName("ScrollViewer", flexGrid) as C1ScrollViewer;
var cellsPanel = scrollViewer.Content as GridCellsPanel;
cellsPanel.Margin = new Thickness(0, 0, 0, 40);
}
Please refer to the same from the attached sample. (see FlexGridMargin.zip)
Best Regards,
Kartik
Posted 6 June 2021, 12:59 am EST
Thank you for your help. It works.