Home Forums WinForms controls Xceed Grid for WinForms Databind colms to object properties

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17410 |

    I’m trying to do someting very basic but i can’t find how to do it. I have a collection of objects i show in a grid. Works fine when a set te datasource property to my collection. the grid auto generates a column for every property on the object.

    What i want to do is to create the columns at design time and databind them to the properties of the object, like in a data template in WPF. I can create the culmns in the desgner but the are unbounded and i can not find where i can configure them to bind correctly.

    Thanks in advance!

    Dimitri

    Imported from legacy forums. Posted by dimitri (had 1564 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Dimitri,

     

    It is not possible to create some column at design time that will be bound to a property of a bound data source. You should either bound the grid in design time to your data source or create them in code behind. This is unfortunately a limitation of the component and was implemented by design.

    Imported from legacy forums. Posted by Mohamed [Xceed] (had 883 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.