Hello,
on a button click, users can add (or remove) additional columns to the grid. This new columns should be fixed left after one fixed column that is always present.
What is the best approach to achieve this? Adding the column to the ultraDataSource? Which event of the grid reflect this change?
Thanks for any help. Markus
Hi,
Do the additional columns need to be bound? In other words, do you need these columns to exist in the data source? Or do you want them to exist as unbound columns in the grid?
You can do it either way. The Band object on either the grid or the UltraDataSource has a Columns collection which supports an Add method. So which one you use is up to you.
No event will fire when you add a column to the grid or the UltraDataSource - or at least no event specific to this operation. You really don't need an event here, since it's your code that is making the change.
Hi Mike,
the column don't need to be bound. The column contains some read only information showed to the users and should be enabled / disabled at request.
Adding this column(s) directly to the grid seems a good solution for me. I did not realized this possibility.
Thanks for your help.