cxgrid中多个band怎么设置、增加、减少、取消冻结列(固定列)

如题
我的思路是设置之前记录每列所属的bandindex,取消或者减少的时候还原,这样可以保证列不会乱七八糟。
大神们来个能用的demo谢谢

with EDBG.CreateItem as TcxGridDBColumn do
begin
DataBinding.FieldName:=CutStr(P[X],':',1);
Caption:=CutStr(P[X],':',2);
Width:=StrToInt(CutStr(P[X],':',3));
Visible:=True;
inc(Z);
end;