Hi,
I am using two bands in one grid. One band is parent band and another is child band of the parent band. Both are using same no of columns. Now the issue is when I expand any column then alignment of parent and child rows is not properly setting properly. I am using OnAfterColPosChanged event for doing the re-alignment.
But the problem is my in child band first column's width should be less than the parent band first column, so that it looks like child.
After OnAfterColPosChanged i need to set childband[colum1].width -= parentband[column1].width -20, but i am not able to do this in the end of this OnAfterColPosChanged().
plese tell me how set this width after OnAfterColPosChanged event.
{
if (DisplayLayout.Bands.Count == 0)
UltraGridBand rootBand = DisplayLayout.Bands[0];
// keep the column ordering in sync between both main and child bands
continue;
childBandColumn.Header.Fixed = header.Fixed;
}
childBandColumn.Width = header.Column.Width;
childBandColumn.Hidden = header.Column.Hidden;
Hello rosymalhotra,
I prepared and attached a sample to this post regarding the desired behavior. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.