Home Forums WPF controls Xceed DataGrid for WPF Same field twice in DataRow

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

    I’m working on a ControlTemplate for a DataRow:

    <ControlTemplate x:Key=”customDataRowTemplate” TargetType=”{x:Type xcdg:DataRow}”>

    I’d like to place 2 DataCells in the row with the same FieldName. When I do I get this error at run time:

    An item with the same key has already been added.

    Can I do this?

    Brian

    Imported from legacy forums. Posted by Brian (had 421 views)

    User (Old forums)
    Member
    Post count: 23064

    you should use different filed name and set up DisplayMemberBinding instead.

    Imported from legacy forums. Posted by nat (had 2594 views)

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