Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
Binding Textbox text in a cell to an object
posted

I played with Andrew Smiths resolution for controls inside of cells; however, I am unable to update the underlying data source.  Also, cells do not show values initially and changes do not update bound objects.  Any help would be appreicated.  I attached a modified version of his code showing my issues.

HostAnyControlInfra.zip
  • 69686
    posted

    Hello,

    I can see two issues here :

    1. Your SomeStrings class does not have a public property. The XamDataGrid binds to public properties and you have only one field, so you need to change that to :

    public class SomeStrings

        {

            public string tstString { get; set; }

        }

    2. Once you have done that, you will get two fields (one unbound and one normal) If you want to define your field layouts manually, you have to set the AutoGenerateFields property of the FieldlayoutSettings to false.