This sample demonstrates how to freeze columns in a GridGroupingControl that is bound to a hierarchical dataset.
Features
Frozen columns allow specific columns to be locked so that they are always visible on screen, irrespective of the extent of scrolling.
In a nested grid with frozen columns, to make sure that columns in nested records are properly aligned, TrackWidthOfParentColumn property can be used to specify a column in a parent record which will be tracked by the child record.
for(int n = 0; n <= freezeCol; n++)
parentToChildRelationDescriptor.ChildTableDescriptor.Columns[n].TrackWidthOfParentColumn =
gridGroupingControl1.TableDescriptor.Columns[n].Name;
These features are illustrated in the image below.