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.
Regards,
Rajagopal