Posted 3 June 2021, 6:19 pm EST - Updated 3 October 2022, 11:40 pm 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 3 June 2021, 6:19 pm EST
Posted 3 June 2021, 6:19 pm EST - Updated 3 October 2022, 11:40 pm 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 3 June 2021, 6:24 pm EST
It’s about .NET5 FlexGrid.
Posted 3 June 2021, 7:01 pm 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 5 June 2021, 3:59 pm EST
Thank you for your help. It works.