Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145282 | Jun 15,2019 09:55 AM UTC | Jun 17,2019 05:13 PM UTC | WPF | 1 |
![]() |
Tags: SfDataGrid |
private void Button_Click(object sender, RoutedEventArgs e)
{
var visibleLines = this.sfdatagrid.GetVisualContainer().ScrollRows.GetVisibleLines();
var firstVisibleRow = visibleLines.FirstOrDefault(line => line.Region == ScrollAxisRegion.Body);
var firstVisibleRowIndex = firstVisibleRow.LineIndex;
MessageBox.Show(firstVisibleRowIndex.ToString());
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.