BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void VScrollBar_ValueChanged(object sender, EventArgs e)
{
if(((Syncfusion.UI.Xaml.ScrollAxis.ScrollInfo)sender).Value >= (((Syncfusion.UI.Xaml.ScrollAxis.ScrollInfo)sender).Maximum - DataGrid3.GetVisualContainer().ViewportHeight))
{
var parentElement=FindDescendant(DataGrid3,typeof(ScrollViewer));
(parentElement as ScrollViewer).ScrollToVerticalOffset((parentElement as ScrollViewer).VerticalOffset + 10);
}
if(((Syncfusion.UI.Xaml.ScrollAxis.ScrollInfo)sender).Value <= ((Syncfusion.UI.Xaml.ScrollAxis.ScrollInfo)sender).Minimum)
{
var parentElement = FindDescendant(DataGrid3, typeof(ScrollViewer));
(parentElement as ScrollViewer).ScrollToVerticalOffset((parentElement as ScrollViewer).VerticalOffset-10);
}
} |
Hello Balamurugan Rajaraman,
Thank you for the reply, I didn't get it to work as I've intended originally but after some tweaking with the code I got it working. I've attached a zip with the datagrid scrolling the parent once is at the end, and if we keep scrolling down, it'll keep scrolling the parent, before it just did the -10 / +10 offset of height on the parent and that's it.
Best regards and thank you again.
Alexandru.