This is a migrated thread and some comments may be shown as answers.

Hide dynamically a GridViewDataColumn in a GridViewTableDefinition

1 Answer 124 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pierrick
Top achievements
Rank 1
Pierrick asked on 23 Nov 2011, 10:34 AM
Hi,

I need to hide dynamically a GridViewDataColumn in a hierarchical grid.

Dim column As GridViewDataColumn = Nothing
// _def is a GridViewTableDefinition added to my grid

                For Each column In _def.FieldDescriptors
                    If column.UniqueName.Equals(name) Then
                        column.IsVisible = false
                        Exit For
                    End If
                Next
           
My column is always visible. How can i do this ?
Thx


1 Answer, 1 is accepted

Sort by
0
Pierrick
Top achievements
Rank 1
answered on 23 Nov 2011, 11:46 AM
Nobody knows how to hide a column in a hierarchical radgridview ?
Hide the column in the tabledefinition doesn't hide the column in my grid.
Is it possible to update the appearence of my hierarchical grid after rendering "isvisible" property to false at the column ?

Please help !!!
Tags
GridView
Asked by
Pierrick
Top achievements
Rank 1
Answers by
Pierrick
Top achievements
Rank 1
Share this question
or