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
195
Bound Ultragrid automatically shows new properties after setting up the grid at design time
posted

After setting up my grids at design time, if a few months later somebody adds a property to the datasource object it will automatically appear in the grid.  Is there an attribute or something we can add to the properties that we don't want to show in the grid?

Parents
  • 12480
    Offline posted

    Hello,

    Depending on what type of datasource you're using, you might be able to hide specific fields. There's a good way to do it in the grid, though, which is independent of the type of datasource you use.

    After binding the grid, loop through the columns in each band and set the column's Hidden property to false. Then, set Hidden back to true for the specific columns you want to show. If new columns are added to the data source, they'll be picked up by the initial loop and hidden, but won't be set back to visible unless you modify the code to do so.

    Please let me know if you have any questions.

Reply Children