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
125
Preventing autogenerated columns
posted

Hi,

How do you prevent the WinGrid from auto-generating columns when binding to a datasource?

Thank you

Parents
  • 469350
    Verified Answer
    Offline posted

    You cannot. The grid must create a column for each column in the data structure. NewColumnLoadStyle wil help yuo hide columns, but you cannot remove them or prevent them from being created. 

    Depending on the needs of your application, you might want to consider using UltraWinTree instead of grid. The tree can be set up to only create the columns you want. It lacks certain grid features like summaries, filtering, and grouping, though. So it's not as robust for data entry, but it's good for navigation. 

Reply Children
No Data