Welcome to the Xceed Community | Help
Community Search  
More Search Options

Display InsertionRow as last item in row (Not in Header/Footer)

Sort Posts: Previous Next
  •  05-14-2009, 4:34 PM Post no. 20962

    Display InsertionRow as last item in row (Not in Header/Footer)

    How do I display the InsertionRow in the Grid itself and not in a Header?

     

    The code below places the InsertionRow in either the View.Headers or View.Footers. 

    template = new DataTemplate();

    template.VisualTree = new FrameworkElementFactory( typeof( InsertionRow ) );

    template.Seal();

    grid.View.Headers.Add( template );

     

    However, I want to place the InsertionRow as the last Row.

  •  05-15-2009, 8:36 AM Post no. 20984 in reply to 20962

    Re: Display InsertionRow as last item in row (Not in Header/Footer)

    Any suggestions?

     How about just adding in a new row manually and changing the glyph to appear as an New Rew?

    Has anyone tried this?

  •  05-15-2009, 4:59 PM Post no. 21007 in reply to 20962

    Re: Display InsertionRow as last item in row (Not in Header/Footer)

    Hi Clayton,

     You can put it in the FixedFooters instead.


    Diane Lafontaine
    Developer Technical Support
    Xceed Software Inc.

    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!
  •  05-21-2009, 9:03 AM Post no. 21086 in reply to 21007

    Re: Display InsertionRow as last item in row (Not in Header/Footer)

    First, thank you for the reply. You are the first to actually respond to one of my posts.

    However, if you take a look at the original post, I want to show the insertion row at the bottom of the last actual row. Not in the footer and not in the header.

    It looks like I am going to have to create this row in code as an actual real object and set some property to indicate that it is in fact the insertion row.

    Again, thanks for the reply.

  •  05-21-2009, 10:27 AM Post no. 21088 in reply to 21086

    Re: Display InsertionRow as last item in row (Not in Header/Footer)

    I would also like to display insert row at the bottom and not on the top. Its confusing for the user to have the insert row at the top of grid.

    It would be helpful if somebody from Xceed respond.

  •  05-21-2009, 1:41 PM Post no. 21104 in reply to 21088

    Re: Display InsertionRow as last item in row (Not in Header/Footer)

    Hi,

    I have never tried it in code but I can get the insert row in as the last row with the following XAML

                    <xcdg:DataGridControl.View>
                        <xcdg:TableView
                            UseDefaultHeadersFooters="False"
                            ShowFixedColumnSplitter="False">
                            <xcdg:TableView.Footers>
                                <DataTemplate>
                                    <xcdg:InsertionRow/>
                                </DataTemplate>
                            </xcdg:TableView.Footers>
                        </xcdg:TableView>
                    </xcdg:DataGridControl.View>

    Clayton, what I believe you were doing wrong is that you were not creating a TableView first in your code & then add the insert row to the footer. TableView has the option of FixedHeader, FixedFooter, Header & Footer and the names say it all.

    Hope this helps!

    Shams

  •  05-21-2009, 1:43 PM Post no. 21105 in reply to 21086

    Re: Display InsertionRow as last item in row (Not in Header/Footer)

    You can add the InsertionRow to the Headers, Footers or FixedFooters.  In your case adding it to the Footers will add it right under the last DataRow.

    In code behind:

      this.myGrid.View.Footers.Add( template );

    In XAML:

      <xcdg:DataGridControl.View>
        <xcdg:TableView>
          <xcdg:TableView.Footers >
            <DataTemplate>
              <xcdg:InsertionRow />
            </DataTemplate>
          </xcdg:TableView.Footers>
        </xcdg:TableView>
      </xcdg:DataGridControl.View>


    Diane Lafontaine
    Developer Technical Support
    Xceed Software Inc.

    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!
  •  02-27-2012, 8:53 AM Post no. 31751 in reply to 21105

    Re: Display InsertionRow as last item in row (Not in Header/Footer)

    Thank you very much Diane! You have helped a lot!
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.