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
4032
WinGrid and UltraDataSource: How adding new columns
posted

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

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

Children