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.
Unfortunately, activation email could not send to your email. Please try again.

Find visible columns

Thread ID:





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

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


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

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 07:00 AM

That worked great - thank you very much!


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

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.

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.