I want to hide some columns on my root table et some other on the child. My data source is a simple dataset containing 2 tables linked with a relationship. The bindind and the data displayed is correct: I can expand et shrink the data.
But, when I want to hide a column, in the pageload event (just after data binding) with myGrid.GridContent.Columns(0).Hidden=true, I got the error. It seems that the data is not already loaded in the structure of the grid after de data binding.
What can I do to solve the problem?
Hi,
You need to define your columns for the band in the ASPX and then set the Hidden property on the column that you want to hide to true. The the AutoGenerateColumns property on the Band (or the grid if you are doing that on the top level) to false.
Thanks,
Olga
Please let me know if this can be done dynamically. I want to hide the column that just being grouped. Otherwise, the column data repeats through the grouped rows.
Or
Is there any other way to hide the grouped columns automatically?