scrolling?
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)
SIGN IN To post a reply.
7 Replies
SS
Susmitha Sundar
Syncfusion Team
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.
C#:
|
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");
} |
Sample link: https://www.syncfusion.com/downloads/support/forum/147654/ze/DataGrid_WF_ScrollingEvents-170033741
We hope it helps. Please get back to us if you need further assistance.
Regards,
Susmitha S
FG
FGGamboa
September 19, 2019 07:07 PM UTC
ty ;D
FP
Farjana Parveen Ayubb
Syncfusion Team
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
Regards,
Farjana Parveen A
YG
Yvo G.
January 11, 2022 11:52 AM UTC
For further and immediate clarity, is there any difference between
ValueChanged versus Scroll events
?
VS
Vijayarasan Sivanandham
Syncfusion Team
January 12, 2022 02:25 PM UTC
Hi Yvo G,
Yes. Scroll events are only triggered while scrolling on UI Interaction in SfDataGrid. but ValueChanged event trigger for both UI Interaction and changing the scroll value programmatically in SfDataGrid.
Please let us know if you have any concerns in this.
Yes. Scroll events are only triggered while scrolling on UI Interaction in SfDataGrid. but ValueChanged event trigger for both UI Interaction and changing the scroll value programmatically in SfDataGrid.
Please let us know if you have any concerns in this.
Regards,
Vijayarasan S
YG
Yvo G.
January 12, 2022 06:52 PM UTC
M. Sivanandham, thanks a lot.
So far we've looked at :::
- sfDataGrid.TableControl.VerticalScroll.Scroll
- sfDataGrid.TableControl.VerticalScroll.ValueChanged
- sfDataGrid.TableControl.HorizontalScroll.Scroll
- sfDataGrid.TableControl.HorizontalScroll.ValueChanged
For even more clarity perhaps, I noticed there's also :::
- sfDataGrid.TableControl.WindowScrolled
Can anything be explained about this latter event, compared to the other four handlers ?
– Yvo G. Dries –
VS
Vijayarasan Sivanandham
Syncfusion Team
January 13, 2022 02:38 PM UTC
Hi Yvo G,
sfDataGrid.TableControl.WindowScrolled event occurs after the window has been scrolled. This event trigger for both UI Interaction and changing the scroll value programmatically in both Horizontal and Vertical scrolling in SfDataGrid.
API Link: https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.Controls.SfScrollControl.html#Syncfusion_WinForms_Controls_SfScrollControl_WindowScrolled
Please let us know if you have any concerns in this.
sfDataGrid.TableControl.WindowScrolled event occurs after the window has been scrolled. This event trigger for both UI Interaction and changing the scroll value programmatically in both Horizontal and Vertical scrolling in SfDataGrid.
API Link: https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.Controls.SfScrollControl.html#Syncfusion_WinForms_Controls_SfScrollControl_WindowScrolled
Please let us know if you have any concerns in this.
Regards,
Vijayarasan S
SIGN IN To post a reply.
- 7 Replies
- 5 Participants
-
FG FGGamboa
- Sep 18, 2019 07:06 PM UTC
- Jan 13, 2022 02:38 PM UTC