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

unhide column

Thread ID:





99944 Jun 21,2011 03:53 PM UTC Jun 24,2011 10:48 AM UTC WPF 3
Tags: GridControl
Mary Fontana
Asked On June 21, 2011 03:53 PM UTC

I am using GridDataControl.
How do you redisplay a a hidden column?

Deenadhayalan M [Syncfusion]
Replied On June 23, 2011 10:39 AM UTC

Hi Mary,

Thanks for your interest in Syncfusion products.

You can achieve your requirement by setting IsHidden property as follows,

Code snippet [C#]:

this.dataGrid.VisibleColumns[2].IsHidden = false;

We have prepared a sample based on this. Please find the sample in the following location.

Please let us know if you have any queries.



Mary Fontana
Replied On June 23, 2011 02:10 PM UTC

Sorry I should have explained the problem more in my question.

If you resize a column to its minimum size it becomes hidden.
Is there a way to get it to redisplay to its previous state.

I just now tried it and double click on the header will work, but I had to set the minumum size of the column so that it was visible.

Deenadhayalan M [Syncfusion]
Replied On June 24, 2011 10:48 AM UTC

Hi Mary,

You can achieve your requirement by using the below code snippet.

Code snippet [C#]:

this.datagrid.ResizingColumns += new GridResizingColumnsEventHandler(datagrid_ResizingColumns);

void datagrid_ResizingColumns(object sender, GridResizingColumnsEventArgs args)
if (args.Width<5)
args.Width = 100;

Please let us know if you have any queries.



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