Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2745
Show/Hide columns in postback
posted

Hello!

Consider this example.

I have a grid with three columns:(ID, Name, Company)

On Page_Load, I  group the data using the ID column key and therefore hiding that column since it only shows the same information as in the band that was created when doing the group bu operation. When the user wants to add the name column to the group by area, i would like to hide the Name column as well. When the user removes any column from the group by, I would like to show that column and so on...

I tried a bit using the GroupedColumnsChanging/Changed event and rebinding the data there but nothing was reflected in the grid... Any ideas?

Thanks!

/Henrik

Parents
  • 33839
    Suggested Answer
    posted

    Hi Henrik,

    If you are hiding the columns on a band, these are only copied down to the container grid when it is created.  A work around is to handle row island binding and and copy the Hidden value of the columns from the Band Columns to the Grid Columns.

    regards,
    David Young 

Reply Children
No Data