Unable to get it working

May 19, 2011 at 9:40 AM

Hi,

 

I am unable to get the grid working. It is working perfectly in the sample code u have provided. but if i include the dll in my project it stops working.

 

at first it gives error... which i fixed by using FirstOrDefault instead of First....

but after the grid retrieves i m not able to see images/details for filter, sort etc...

May 26, 2011 at 6:51 AM

Can you post your xaml and the code?

Jun 16, 2011 at 4:14 PM

hmmm same problem

had error --> change to what you suggest and the upper toolbar for filter is not there , but the regular datagrid works .

So i guess  FirstorDefault doesn't works

Aug 11, 2012 at 7:46 AM
Edited Aug 11, 2012 at 7:47 AM

It is quite old, but I found a solution for this I want to share,

 

the problem is not in the First or FirstOrDefault, you can leave this as it is

the problem with the GenericOptions, as the grid can only deal with generic lists

to bypass this problem, in the sample page you can do the following

 

 

    Private Sub RegenerateGroups(iEnumerable As IEnumerable(Of ServiceModel.DomainServices.Client.Entity))

        Dim nObserveData As New ObservableCollection(Of CDR)

        For Each item In iEnumerable           

               nObserveData.Add(item)       

        Next


        CDRDataGrid.FilteredItemsSource = nObserveData
    End Sub