6
Answers

ListView binding to DataTable...

Joseph

Joseph

15y
16.7k
1
I have a DataTable with three columns (Name, CasesToday, CasesWeek) and a ListView with a View of GridView. I need to bind the ListView to display the contents of the DataTable at runtime. I have tried gvUsers.ItemsSource = dtUsers2.DefaultView; but this only shows "System.Data...." and not the actual value from the row. I have scoured the Internet for the solution to this but can only find SQL and XML binding; none the reference DataTables. Any help would be much appreciated.

Answers (6)