If i bind a data table to WPF Toolkit-data-grid.....no need to specify the column names there...it will automatically take that from the datable.
But if I am binding a list-view to an observable collection...I have to specify the column header names for each column one by one..in xaml file.
So if I have a list of column names ->List<ColumnHeaderNames>
along with
list of item to populate ->List<Object to populate list>
I can bind item list to list-view...and column name list to list-view header...but i don't know if there s any property in list-view...to bind my header.
That means...
I have a user control in which i have 2 list-views ...one is available and another is selected. I need this user control shud be reusable...That means...if I am binding a list like ...the list shud contain two columns...first column with name as "state" and second column name as "county". But if I am binding a list like ..Then listview shud contain 3 columns...with column names as fruit, color and price.