I would like to be able to add / remove columns to my datagrid, based on UI inputs from the user.
Is this possible? Any good articles on this?
Thanks, Mark
I would like to be able to add / remove columns to my datagrid, based on UI inputs from the user.
Is this possible? Any good articles on this?
Thanks, Mark
Yes it is possible:
// Candidates is the DataGrid
var newColumn = new DataGridTextColumn() { Header="New Column"};
Candidates.Columns.Add(newColumn);
Candidates.Columns.Remove(newColumn);
© 2022 - 2024 — McMap. All rights reserved.