I usually use a method in my class ...
public DataTable GetData() and in UserControl I have xgrd.DataSource = MyClass.GetData().DefaultView;
If I change my method to:
public ObervableCollection<MyDataClass> GetData(), and in my UserControl if I have xgrd.DataSource = MyClass.GetData();
shouldn't it just work - what am I missing? The grid is displaying the small markers along each row but no field names or data.
Thanks.
Hi Jay,
I am just checking if you require any further assistance on the matter.
Hi Sridhar,
Thank you for your post. I have been looking into your issue and I created a sample application(DataGrid_DataSource.zip) which follows your scenario and the data is shown in the XamDataGrid.
Please let me know, if I am missing something.