How does one bind to an List<DataRow> collection in WPF XAML?
Posted
by Elan
on Stack Overflow
See other posts from Stack Overflow
or by Elan
Published on 2010-05-14T03:21:37Z
Indexed on
2010/05/14
3:24 UTC
Read the original article
Hit count: 318
Using a DataTable or DataView, one can specify the binding in XAML for example as follows:
<Image Source="{Binding Thumbnail}" />
In my case I have created a List collection of DataRow objects and the above is not working. This is my data source:
List<DataRow>
I could of course convert the List<> to a DataTable, but I am curious if there was a way to specify the binding in XAML to access the "Thumbnail" column within the DataRow that is stored in a List<> collection.
Elan
© Stack Overflow or respective owner