/// <summary> /// Sets the group number of the currently selected columns to <code>nGroup</code>. /// </summary> /// <param name="datacoll">The data column collection to which to apply this procedure.</param> /// <param name="selected">Collection of column indices for which to set the group number.</param> /// <param name="nGroup">The group number to set for the selected columns.</param> public static void SetColumnGroupNumber(this DataColumnCollection datacoll, IAscendingIntegerCollection selected, int nGroup) { for (int i = 0; i < selected.Count; i++) { datacoll.SetColumnGroup(selected[i], nGroup); } }