I'm trying to display a sharepoint 2010 list using WPF and the Sharepoint Client object model. This is the grid

    <DataGrid AutoGenerateColumns="True" Height="200" HorizontalAlignment="Left" Margin="124,37,0,0" Name="dataGrid1" VerticalAlignment="Top" Width="200" ItemsSource="{Binding}" FontFamily="Arial" Opacity="100" />

I'm able to get the list in a ListItemCollection object.The binding to WPF datagrid was done with

ListItemCollection listitems = list.GetItems(query);
dataGrid1.ItemsSource = listitems;

I'm pretty sure the listitems object is populated because I tried printing it in a separate console application and it worked.But when trying to bind the same to a datagrid, the grid just shows up empty.Tried dataGrid1.HasItems and it returns true. What am I missing here?Why isn't any data showing up?

  • have you a solution? i have the same problem =( – Patrick Kranig Dec 4 '19 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.