Hi,
Thanks for your help. But my project need show and hide columns frequently based on different selections. It is not very good approach to recreate GidColumns every time I simply want to hide or show columns.
By the way, I do think this is bug in the GridDataBoundGrid. Is that possible it can be fixed next release?
Thanks.
--Shuyang he
>If you want to hide a column, do not add a GridBoundColumn for it instead of trying to set grid.Model.Cols.Hidden.
>
>
>For count As Integer = 0 To Me.all_Columns.Length - 1
> If all_Columns(count) <> "Symbol" Then
> Dim aGridColumn As Syncfusion.Windows.Forms.Grid.GridBoundColumn
> aGridColumn = New Syncfusion.Windows.Forms.Grid.GridBoundColumn
> aGridColumn.MappingName = all_Columns(count)
> Me.GridDataBoundGrid1.GridBoundColumns.Add(aGridColumn)
> End If
> Next
>
>