How do I in c# programmatically add new columns to my xamDatagrid where each column is bound to an ObservableCollection?
I have array of ObservableCollections. I would like to add to an existing xamDatagrid, 1 column for each ObservableCollection.
I know have to create a new Field for each column but I dont know to bind a field to a specific collection.
Is this not possible or a dumb thing to do?
Hello Jason,
I have reviewed the details you provided and I am not sure what you want to see when bind the collection. What type of editor you would like to use in your records for those fields? Would you please provide additional information about your scenario?
Regarding how to add fields to XamDataGrid dynamically you can read the following blog post: XamDataGrid–Dynamically Create and Data Bind Columns.
Please let me know if you require any further assistance regarding this matter.
Sincerely, ZhivkoEntry Level Software Developer