How to check programatically if column is hidden

How to check programatically if column is hidden or not.

1 Reply

AA Arulraj A Syncfusion Team September 17, 2018 09:18 AM UTC

Hi Mariusz, 

Thanks for using Syncfusion product. 

To check the column is hidden or not programmatically, you could use the VisibleColumns and Width property. Please refer the following code example and the sample, 

Code example 
private bool IsColhidden(string columnName) 
{ 
    if (this.gridGroupingControl1.TableDescriptor.VisibleColumns.Contains(columnName) && this.gridGroupingControl1.TableDescriptor.Columns[columnName].Width > 0) 
        return false; 
    return true; 
} 
 
 

Arulraj A 


Loader.
Up arrow icon