We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





147654 Sep 18,2019 07:06 PM UTC Sep 20,2019 04:44 AM UTC WinForms 3
Tags: SfDataGrid
Asked On September 18, 2019 07:06 PM UTC

hi, good day, i have the next question. 

sfdatagrid have the event scrolling? or only GridGroupingControl have the event?, but the event scrolling not working with the  the scroll keys, you will have some example? (I'm sorry for my English)

Susmitha Sundar [Syncfusion]
Replied On September 19, 2019 12:06 PM UTC

Hi FGGamboa,  
Thank you for using Syncfusion controls.   
SfDataGrid supports the scrolling events. You can use the ValueChanged and Scroll event for both Horizontal and Vertical scrolling in SfDataGrid. Please refer the below code snippet.  
  this.sfDataGrid1.TableControl.VerticalScroll.ValueChanged += VerticalScroll_ValueChanged;   
  this.sfDataGrid1.TableControl.VerticalScroll.Scroll += VerticalScroll_Scroll;   
this.sfDataGrid1.TableControl.HorizontalScroll.ValueChanged += HorizontalScroll_ValueChanged;   
this.sfDataGrid1.TableControl.HorizontalScroll.Scroll += HorizontalScroll_Scroll;   
   private void VerticalScroll_Scroll(object sender, ScrollEventArgs e)   
       MessageBox.Show("Scroll event");   
   private void VerticalScroll_ValueChanged(object sender, EventArgs e)   
       MessageBox.Show("Scroll value changed event");   
         private void HorizontalScroll_Scroll(object sender, ScrollEventArgs e)   
      MessageBox.Show("Horizontal Scroll event");   
  private void HorizontalScroll_ValueChanged(object sender, EventArgs e)   
      MessageBox.Show("Horizontal Scroll value changed event");   
We hope it helps. Please get back to us if you need further assistance.   
Susmitha S  

Replied On September 19, 2019 07:07 PM UTC

ty ;D

Farjana Parveen Ayubb [Syncfusion]
Replied On September 20, 2019 04:44 AM UTC

Hi FGGamboa, 
Thank you for your update. 
please get back to us if you require further other assistance from us 
Farjana Parveen A 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon