Posted 9 years ago by Bret Naughton
Version: 10.1.0523
Avatar
Hi, my current application uses the windows.forms datagrid to show a datagrid in a toolwindow (loaded into a windowsformshost) and this works ok - The datagrid is declared in vb code and I use the datasource property to populate the datagrid with the contents of a dataset table.

I am now trying to achieve the same thing through the wpf datagrid, so I now declaring the datagrid as a datagrid.themeddatagrid, but I find no reference to datasource, and I am having issues binding the dataset table to the wpf datagrid.

I have searched through the examples and on through google, but can't seem to find a solution - do you have a vb code example for defining the wpf datagrid and populatinf from a dataset table.

Thanks,
Bret

Comments (1)

Posted 9 years ago by Bret Naughton
Avatar
Sorry for the false alarm. I have now resolved this using the following code:

Datagrid.ItemsSource = DataTable.DefaultView

Bret
The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.