Home Forums WPF controls Xceed DataGrid for WPF Adding Insertion Row at the Footer

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

    Hi,

    I’ve installed WPF Datagrid’s latest update version 1.1.7273.12150.

    Why I’m not able to add Insertion Row at the Footer of the Grid. Here’s my code

    Xceed.Wpf.DataGrid.Views.TableView tv = new Xceed.Wpf.DataGrid.Views.TableView();
    DataTemplate dt1 = new DataTemplate();
    FrameworkElementFactory f1 = new FrameworkElementFactory(typeof(Xceed.Wpf.DataGrid.InsertionRow));
    dt1.VisualTree = f1;
    tv.Footers.Add(dt1);
    mygrd.View = tv;

    Thanks in advance

    Regards
    Sathanantham

    Imported from legacy forums. Posted by Satheesh (had 3042 views)

    User (Old forums)
    Member
    Post count: 23064

    try this;

    template = new DataTemplate();
    FrameworkElementFactory insertionRowFactory = new FrameworkElementFactory(typeof(InsertionRow));
    template.VisualTree = insertionRowFactory;
    grid.View.FixedFooters.Add(template);

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

    User (Old forums)
    Member
    Post count: 23064

    Dear fredricks,

    You are correct. It’s able to add Insertion Row as the FixedFooter.

    But I want it to be added as Footer of the Grid.

    Regards
    Sathanantham

    Imported from legacy forums. Posted by Satheesh (had 375 views)

    Xceed Support
    Member
    Post count: 5658

    Instead of View.FixedFooters.Add(), try View.Footers.Add().

    Imported from legacy forums. Posted by Marcus [Xceed] (had 3916 views)

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