Search code examples
c#datagridscatterview

How to add a Datagridview into a Scatterviewitem?


I am trying to display the contents of different tables dynamically using scatterview, is there an easy way to do that. Right now I have the results of a query in DatagridView and I want to add it to a ScatterViewItem. I tried directly assigning, however I must be doing something wrong here. Do I need to bind it to the xaml code?

dgv = QueryResult();
svi.Content = dgv.DataSource;

Solution

  • The answer for this question was already there, my mistake I did not search that well. The last post in : Can I programmatically add a row to a WPF datagrid?

    Moderators please flag appropriately.

    Thanks