I have a collection that I wish to bind to a WPF grid.
The problem I\'m facing is that the number of columns is dynamic and is dependent on a collection. Here is a
Create a Grid using code as shown at http://msdn.microsoft.com/en-us/library/system.windows.controls.grid(v=vs.90).aspx#feedback
create a property of type ColumnDefinition,( and use property changed ) to create columns.