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.

Hide and Show Column

Thread ID:

Created:

Updated:

Platform:

Replies:

129333 Mar 13,2017 03:56 PM Mar 14,2017 12:10 AM Xamarin.Forms 1
loading
Tags: SfDataGrid
Andy Link
Asked On March 13, 2017 03:56 PM

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.

Regards

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

Hi Andy,

Thanks for contacting Syncfusion support. SfDataGrid supports hiding and unhiding of columns from the 2017 Volume 1 Main Release ( version 15.1.0.33) . 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; 

Regards,
Vimal Prabhu
 


CONFIRMATION

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.

;