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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

First Visible Row

Thread ID:

Created:

Updated:

Platform:

Replies:

115964 Mar 6,2014 12:15 PM UTC Mar 19,2014 05:34 AM UTC WPF 1
loading
Tags: GridDataControl
Juraj Tomana
Asked On March 6, 2014 12:15 PM UTC

Hi.

If I use vertical scrollbar, how can I find out index of first visible row?

See attached screenshot.

Thanks.
Regards,
Juraj

Attachment: frvis_ffcc874c.zip

Saravanan M [Syncfusion]
Replied On March 19, 2014 05:34 AM UTC

Hi Juraj,

 Apology for delay caused,

 We have analyzed your query. You can achieve your requirement by using ScrollLineIndex API in VScrollBar value changed event. Please refer the below code snippet.

 Code snippet[C#]:

 

void syncgrid_ModelLoaded(object sender, EventArgs e)

 {

 this.syncgrid.Model.Grid.VScrollBar.ValueChanged += VScrollBar_ValueChanged;

}

 

void VScrollBar_ValueChanged(object sender, EventArgs e)

 {

   var line = syncgrid.Model.Grid.ScrollRows.ScrollLineIndex;

  Console.WriteLine(line.ToString());

}

 

 Please let us know if you have any queries,

 Regards,

Saravanan.M

 


CONFIRMATION

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.

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

;