How to add a Datagridview into a Scatterviewitem?

89 Views Asked by At

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;
1

There are 1 best solutions below

0
wizgot On BEST ANSWER

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