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

Columns Won't Unhide

Thread ID:





121733 Jan 20,2016 11:22 AM UTC Jan 25,2016 11:50 AM UTC WinForms 3
Tags: GridDataBoundGrid(Classic)
Ashley Bates
Asked On January 20, 2016 11:22 AM UTC


I have given our users the option of filtering what columns appear within a griddataboundgird - I store this flag in the prefix column name within a dataset - When I first setup the grid all the columns show correctly, if I remove columns they also display correctly. When I however add a column that was previously removed, even though I set the column hidden to false on the grid the column does not display visually. The grid itself gets an empty space at the end of the grid where the column should appear but I can't see anything visually. What am I doing wrong?

Sample code:


        GridDataBoundGrid1.AllowProportionalColumnSizing = True
        GridDataBoundGrid1.DataSource = ds.Tables(0)

        For Each col As DataColumn In ds.Tables(0).Columns
            If col.Prefix.ToLower = "hide" Then
                GridDataBoundGrid1.Model.Cols.Hidden(col.ColumnName) = True
                GridDataBoundGrid1.Model.Cols.Hidden(col.ColumnName) = False
            End If

Thank You

Jagadeesan Pichaimuthu [Syncfusion]
Replied On January 21, 2016 03:42 PM UTC

Hi Ashley,

We tried to reproduce the issue with “Columns not unhide properly” from our end, but we are unable to reproduce it. We tested the reported scenario in the below sample and it is working as expected.


Please reproduce the issue in the above sample, so that we can able provide exact solution.


Ashley Bates
Replied On January 22, 2016 09:25 AM UTC


I did some more digging into this and have found that if I add in -

        GridDataBoundGrid1.AllowProportionalColumnSizing = True

then when I unhide the column it doesn't work - If I add this line into the sample you have provided as follows -

Private Sub change()
            For Each column As DataColumn In dataSet.Tables(0).Columns
                If column.Prefix.ToLower() = "hide" Then
                    Me.gridDataBoundGrid1.Model.Cols.Hidden(column.ColumnName) = True
                    Me.gridDataBoundGrid1.Model.Cols.Hidden(column.ColumnName) = False
                End If
            Next column
            gridDataBoundGrid1.AllowProportionalColumnSizing = True

        End Sub

Then when you unhide the column it will not appear.

Thank You.

Jagadeesan Pichaimuthu [Syncfusion]
Replied On January 25, 2016 11:50 AM UTC

Hi Ashley,

Thank you for contacting Syncfusion support.

We have created an incident  on behalf of you. Our support engineer will assist you through incident. We request you to follow with the incident for further details.



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