Home Forums WPF controls Xceed DataGrid for WPF mixing bound & unbound columns?

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

    Hi, I have a general question: is there a way of mixing bound and unbound columns? In Windows Forms DataGridView we could add some columns to a databound grid and manage their contents programmatically. E.g. I could bind a grid to a DataTable and then add a checkbox column to allow user check/uncheck rows as a way of selecting them; or I could add calculated values in unbound columns.
    As the WPF grid is “directly” bound to its data source, I suppose a way of emulating this behaviour could be adding to the source DataTable some custom DataColumn’s after having retrieved it from my data providers, even if this is not very attractive for a strongly-typed dataset DataTable. Could this work with no side-effects? Or is there a better way for doing such things? And of course, this would not take into account bound CLR objects (unless I decide to derive from them a class just for the purpose of displaying it in a mixed-columns grid, which is really not so attractive nor always possible).

    Imported from legacy forums. Posted by Mathetes (had 8503 views)

    User (Old forums)
    Member
    Post count: 23064

    I just got on to ask pretty much the exact same question.

    I don’t want to add ‘fake’ properties to my objects solely for my UI, so a mix would be prefect. Anyone doing this kind of stuff yet?

    Imported from legacy forums. Posted by Jack (had 454 views)

    User (Old forums)
    Member
    Post count: 23064

    I, too, want to work with unbound columns together with the bound ones.

    Anyone who knows what the status on this is?

    /Tove

    Imported from legacy forums. Posted by Tove (had 612 views)

    Xceed Support
    Member
    Post count: 5658

    This is currently not possible but it is on our feature list.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 3547 views)

    User (Old forums)
    Member
    Post count: 23064

    Jenny

    is this still not possible?

     

    Regards

    Klaus

    Imported from legacy forums. Posted by klaus (had 814 views)

    Xceed Support
    Member
    Post count: 5658

    This is still on our feature list but will not be part of the 2.1 release.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 630 views)

    User (Old forums)
    Member
    Post count: 23064

    Has this been implemented yet? 

    Imported from legacy forums. Posted by Matt (had 5685 views)

    Xceed Support
    Member
    Post count: 5658

    Development for this feature has begun and _should_ be part of the 3.2 release.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 282 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks Jenny

     

    Imported from legacy forums. Posted by Matt (had 302 views)

    Xceed Support
    Member
    Post count: 5658

    Thanks. The weekend was overly long.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 307 views)

    User (Old forums)
    Member
    Post count: 23064

    Any indication on the form the feature will take?

    Imported from legacy forums. Posted by Robert (had 486 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Robert, 

    Development is just starting, so if you have any input into what you need or would like, now is the time to do it!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 306 views)

    User (Old forums)
    Member
    Post count: 23064

    [:$] My input at the moment is mostly based on code aesthetics!

    I would much prefer the API for unbound columns to go through DataGridControl.Columns collection rather than through the DataGridCollectionView.ItemProperties (as for the filtering and master/detail stuff).

    As I mention, this is mostly an aesthetic issue. I am basically trying to add some columns in the end-user’s UI, and don’t want to affect the way I configure my data and/or my business logic.

    Imported from legacy forums. Posted by Robert (had 5587 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Robert,

     The Xceed Datagrid for WPF version 3.2, released today, now supports among other features, unbound columns.

    Please download the latest installation package from the Xceed.com website at the URL:  http://xceed.com/Grid_WPF_Intro.html. Thank you for using Xceed Products.

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

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