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

restore column

Thread ID:

Created:

Updated:

Platform:

Replies:

48019 Aug 17,2006 01:21 PM UTC Aug 18,2006 01:48 PM UTC WinForms 3
loading
Tags: GridControl
xiaojie
Asked On August 17, 2006 01:21 PM UTC

Hi:
I''ve a problem on grid column, when I try to resize the width of column , and if I click on the blackline between 2 columns , i can resize it, and it I overlap the line with the line of the previous column line , the whole column disappear and there''s no way I can see this column again, it''s been shrunk. how can I restore the column?
thanks
Pam

Administrator [Syncfusion]
Replied On August 17, 2006 10:02 PM UTC

If you double click the line where the column that you sized down to zero is located, the hidden column will re-appear.

xiaojie
Replied On August 18, 2006 10:59 AM UTC

Hi Clay:
thanks for replying, i tried but it doesnt work...
are there other ways? when i double click on the line the previous column got expanded.. and the column i want to see is still missing..
thanks
Pam

Administrator [Syncfusion]
Replied On August 18, 2006 01:48 PM UTC

Double clicking works in a GridControl. Are you using a GridDataBoundGrid? If so, you will have to handle an event to unhide the column. You can use grid.ResizingColumns as below to make a double click unhide the column.


private void gridDataBoundGrid1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
{
if(e.Reason == GridResizeCellsReason.DoubleClick
&& e.Columns.Left + 1 <= this.gridDataBoundGrid1.Model.ColCount
&& this.gridDataBoundGrid1.Model.Cols.Hidden[e.Columns.Left + 1])
{
this.gridDataBoundGrid1.Model.Cols.Hidden[e.Columns.Left + 1] = false;
}
}



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.

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

;