Home Forums WPF controls Xceed DataGrid for WPF Complex Header Problem

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

    I am having trouble with some of the features in Xceed when I use complex headers like the following:

    <xcdg:Column FieldName=”DateField” IsMainColumn=”True” ReadOnly=”False” CellEditor=”{x:Static xcdg:CellEditor.DatePickerEditor}” Width=”85″ Title=”Date Column” >

    <

    xcdg:Column.Title>

    <StackPanel Orientation=”Vertical”>

    <Label Content= “Date Field” />

    <Label Content= “(MM/DD/YYYY)” />

    </StackPanel>

    </xcdg:Column.Title>

    </xcdg:Column>

    I keep getting: InvalidOperationException – Specified element is already the logical child of another element. Disconnect it first.  when I try to :

    1. set Column.Visible   OR

    2. change Column order via drag and drop

    Imported from legacy forums. Posted by James (had 574 views)

    Xceed Support
    Member
    Post count: 5658

    You should be setting the templates to the TitleTemplate property rather than the Title property as discussed in this thread.

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

    User (Old forums)
    Member
    Post count: 23064

    That worked.

    tyvm

    Imported from legacy forums. Posted by James (had 950 views)

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