Hi Srdjan,
You can handle the TableControlQueryAllowDragColumn event and move the corresponding SummaryGrid column by using the MoveRange method. Here is a code snippet
void grid_TableControlQueryAllowDragColumn(object sender, GridQueryAllowDragColumnEventArgs e)
{
if (e.Reason == GridQueryAllowDragColumnReason.MouseUp)
{
int ColIndex = e.TableControl.TableDescriptor.NameToField(e.Column);
ColIndex = e.TableControl.TableDescriptor.FieldToColIndex(ColIndex);
int insertColIndex = e.TableControl.TableDescriptor.NameToField(e.InsertBeforeColumn);
insertColIndex = e.TableControl.TableDescriptor.FieldToColIndex(insertColIndex);
sumRow.summaryGrid.Cols.MoveRange(ColIndex, insertColIndex - 1);
}
}
Here is a modified sample that shows this task
ModifiedWindowsApplication82.zipBest regards,
Haneef