Reputation: 119
My MainWindow Class have a property called "DataTable":
'Table To import the Excel Sheet
Public Property DataTable As DataTable
An Excel Sheet sets the DataTable property. My question is why I cannot bind that property to a DataGrid. The following code doesn't work:
<DataGrid Name="TestGrid" Visibility="Visible" ItemsSource="{Binding Path=DataTable}">
</DataGrid>
The answer to this question seems to be unclear and doesn't explain too much about how to use the ObjectDataProvider Class.
Upvotes: 0
Views: 114