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

Column disappear when we resize the column to ''zero'' width in GridGroupingControl

Thread ID:





50893 Oct 23,2006 10:51 AM UTC Oct 23,2006 08:01 PM UTC WinForms 1
Tags: GridControl
Vijaya Kumar Reddy
Asked On October 23, 2006 10:51 AM UTC


When we resize any column in the GridGroupingControl to 'zero' size, the respective column is getting disappear and when we double click at the same location where we lost the column it reappears.

I dont want to double click on the column headers where I lost the column, and want to avoid hiding the column in this situation.

Please let me know how we can achieve this.


Administrator [Syncfusion]
Replied On October 23, 2006 08:01 PM UTC

Hi Vijay,

The default behavior is to reshow the hidden columns when you double-click the column border when you see the resizing indicator.
If you dont want to doubleclick on the column headers to reshow the zero-sized column and want to avoid hiding columns in this fashion, then you can cancel this operation in the TableControlResizingColumns event handler. Kindly try the code below

private void gridGroupingControl1_TableControlResizingColumns(object sender, GridTableControlResizingColumnsEventArgs e)
// to avoid showing the hidden columns on doubleclicking over the borders
if(e.Inner.Reason == GridResizeCellsReason.DoubleClick || e.Inner.Reason == GridResizeCellsReason.ResetHide)
e.Inner.Cancel = true;
// to avoid hiding columns using the resizing indicator
if(e.Inner.Reason == GridResizeCellsReason.MouseUp && e.Inner.Width == 0)
e.Inner.Cancel = true;

Let me know if you have any other questions.


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

This page will automatically be redirected to the 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