Currently I am doing the ColumnGroups from the code behind like this.
grid.ColumnGroups.Add(new GridViewColumnGroup
{
Name = groupName,
Header = groupName
});
gridColumn = new GridViewDataColumn();
gridColumn.ColumnGroupName = groupName;
grid.Columns.Add(gridColumn);
But I want to do the same thing using MVVM way. Do you guys have an example project that does this using MVVM?
Any help is greatly appreciated.
grid.ColumnGroups.Add(new GridViewColumnGroup
{
Name = groupName,
Header = groupName
});
gridColumn = new GridViewDataColumn();
gridColumn.ColumnGroupName = groupName;
grid.Columns.Add(gridColumn);
But I want to do the same thing using MVVM way. Do you guys have an example project that does this using MVVM?
Any help is greatly appreciated.