wpf - WPF DataGrid 可编辑 GroupDescriptions
问题描述
我只想让我的 DataGird 组可编辑。我使用此代码在 .cs 中设置组
ICollectionView oView = CollectionViewSource.GetDefaultView(oDatas.oLstImg);
oView.GroupDescriptions.Add(new PropertyGroupDescription(nameof(CDataScriptImg.sGrp)));
但是 CollectionViewGroupInternal.Name 是 ReadOnly 我无法设置 TwoWay 来直接编辑选定的组名。
知道怎么做吗?
在此先感谢埃里克。