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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Find visible columns

Thread ID:





129157 Mar 1,2017 03:52 PM UTC Mar 6,2017 08:39 AM UTC WPF 3
Tags: SfDataGrid
Cliffe Hodgkinson
Asked On March 1, 2017 03:52 PM UTC

Hello, can anyone tell me how I can find the first visible columns in a SfDataGrid?


Balamurugan Rajaraman [Syncfusion]
Replied On March 2, 2017 09:53 AM UTC

Hi Cliffe, 
Thank you for contact Syncfusion support, 
We have analyzed your query. You can achieve your requirement “Find Visible Column” by using ScrollLineIndex of ScrollColumns as like below, 
//here we get the details of the first visible columns 
var firstVisibleColumn = this.datagrid.GetVisualContainer().ScrollColumns.ScrollLineIndex; 
var FirstVisibleColumIndex = this.datagrid.ResolveToGridVisibleColumnIndex(firstVisibleColumn); 
 var column = this.datagrid.Columns[FirstVisibleColumIndex]; 
We have prepared the sample based on your requirement you can download it from the below location, 

Cliffe Hodgkinson
Replied On March 3, 2017 12:00 PM UTC

That worked great - thank you very much!


Balamurugan Rajaraman [Syncfusion]
Replied On March 6, 2017 08:39 AM UTC

Hi Cliffe 
Thanks for the update. 
Let us know if you have any further assistance on this. 


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

or the page will be automatically redirected to 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