Hello,
I have a DBGridEh like this :
[img]C:\Users\Donoharjo\Downloads\1.jpg[/img]
I want to create a DataGrouping based on 'Division' column with this code :
Code:
DBGPiutang.DataGrouping.Active := True;
DBGPiutang.DataGrouping.GroupPanelVisible := True;
gl := DBGPiutang.DataGrouping.GroupLevels.Add();
gl.Column := DBGPiutang.FieldColumns['Divisi'];
DBGPiutang.DataGrouping.GroupLevels[0].ExpandNodes;
But why are the results like this, is there something wrong with the code or method?
[img]C:\Users\Donoharjo\Downloads\2.jpg[/img]
Is there anyone who can help ?
Thanks
Donoharjo