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

First Visible Row

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

1 Reply

SM Saravanan M Syncfusion Team 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

 


Loader.
Up arrow icon