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

Hide and Show Column

Thread ID:





129333 Mar 13,2017 07:56 PM UTC Mar 14,2017 04:10 AM UTC Xamarin.Forms 1
Tags: SfDataGrid
Andy Link
Asked On March 13, 2017 07:56 PM UTC

Hi, i need to hide and show a column in a Datagrid in Xamarin Forms. For hide i use the sentence dataGrid.Columns["name"].Width = 0 , but when it shows, not working when assign a value mayor that 0 and I can't show more the column.


Vimal Prabhu Manohkaran [Syncfusion]
Replied On March 14, 2017 04:10 AM UTC

Hi Andy,

Thanks for contacting Syncfusion support. SfDataGrid supports hiding and unhiding of columns from the 2017 Volume 1 Main Release ( version . Please refer the following code snippet to achieve your requirement.

// Hide a colum 
this.dataGrid.Columns[0].IsHidden = true; 
GridTextColumn column = new GridTextColumn(); 
column.IsHidden = true; 
//UnHide a column 
this.dataGrid.Columns[0].IsHidden = false; 
column.IsHidden = false; 

Vimal Prabhu


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