Hi Alipalengara,
Actually when you resize the column using mouse and make it hidden, you can bring back that column just by double clicking on the column seperator as the resize indicator appears.
If you want to avoid column being hidden as you resize, then you can hook to the TableControlResizingColumns event of the GridGroupingControl that gets triggered when columns in grid are resized. In the event handler code, check for the width of the column that is resized and cancel the event if its hidden(width=0).
void gridGroupingControl1_TableControlResizingColumns(object sender, GridTableControlResizingColumnsEventArgs e)
{
if ((e.Inner.Reason == GridResizeCellsReason.MouseMove || e.Inner.Reason == GridResizeCellsReason.MouseUp)
&& e.Inner.Width == 0)
{
// set e.Inner.Cancel to true to avoid column being hidden
//e.Inner.Cancel = true;
Console.WriteLine("Column Hidden");
}
}
Let me know if you have any other questions.
Regards,
Jisha