Is it possible in WPF to bind a data matrix (data table or an XML file) to a ListView?
Given the following XML dataset:
<data>
<cols>
<col name="FirstName" />
<col name="LastName" />
<col name="Age" />
</cols>
<rows>
<row>
<col>Huey</col>
<col>Freeman</col>
<col>10</col>
</row>
<row>
<col>Michael</col>
<col>Caesar</col>
<col>10</col>
</row>
<row>
<col>Reiley</col>
<col>Freeman</col>
<col>8</col>
</row>
<row>
<col>Cindy</col>
<col null="true" />
<col>9</col>
</row>
<row>
<col />
<col>Robert Jebediah Freeman</col>
<col>70</col>
</row>
</rows>
</data>
Is it possible to bind this data to a ListView?
Note that the data columns are not pre-defined. It could of any type and the names vary.
P/S: I am aware of the DataGrid but it is too heavy for usage we just need to display the data.