Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Hi, I have to dynamically add new columns to a grid control, in my viewmodel. Already my view will be having some columns. As a item source I have to use ObservableCollection<XmlData>, which I did already. Is there any way to add new columns to the grid from viewmodel ?
Posted
Comments
AnthonyMG 29-Nov-13 12:57pm    
if your existing itemsource binding property is present in your ViewModel, you can get add column to it..since your maintaining ObservableCollection , it can be added to it..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900