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
394
Is it possible to hide a property by default within a WinGrid?
posted

If I have my grid's DataSource pointing to a custom class, is there an attribute that I can apply to a property so that by default it will not be displayed within the grid? Thanks.

 

This could be particularly useful if I want to add a property that is not visible to the user to a class that is being used by a WinGrid. If I add that new property, I have to go through all the WinGrid's and set that property as hidden. If I could control it from the class, that would be great!

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    I think if you apply the [Browsable(false)] attribute to a property, it will not show up in the grid.The column will still exist in the grid, but it will be hidden by default.

Children