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

Data does not show (even on AutoCreateColumns), but is bound (Items are in Source Collection)

Sort Posts: Previous Next
  •  04-21-2008, 2:31 AM Post no. 11620

    Data does not show (even on AutoCreateColumns), but is bound (Items are in Source Collection)

    Gentlemen,

    I have the following construct: MyCompany.MyProject.MyStaticClass.MyInstanceClass

    MyInstanceClass has the members ID and Description.

    MyInstanceClass also has a static MyStaticList that keeps a List<> of all instances of the class. This serves as the IEnumerable source for the datagrid.

    When I am binding my data, even with AutoCreateColumns=true, using MyDataGrid.ItemsSource = MyInstanceClass.MyStaticList the WPF DataGrid is bound (Items.Count is correct, SourceCollection has the items), the columns are not being created. If I try to create the columns myself using new Column()... Fieldname="ID".... nothing shows up in the rows, but the correct number of rows is created. Is this a bug?

    This problem seems to be related to the MyInstanceClass being under a MyStaticClass. I could not find a work around.

    Once again, the data is bound to the grid (ItemsCollection is correct) but I can not see any values. Any advice?

    Thank you,

    Filed under: ,
  •  04-21-2008, 9:39 AM Post no. 11631 in reply to 11620

    Re: Data does not show (even on AutoCreateColumns), but is bound (Items are in Source Collection)

    Would it be possible for you to send a repro application to support@xceedsoft.com?
    Senior Technical Writer
    - Xceed Software

    In three words I can sum up everything I've learned about life: it goes on.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.