internal void InsertAfter(int afterRowId, GridRow row) { int newRowHeight = row.Height; row.SetOwnerParentRowCollection(this); row.RowIndex = afterRowId + 1; rows.Insert(afterRowId + 1, row); foreach (GridColumn coldef in table.GetColumnIter()) { coldef.InsertAfter(afterRowId, row); } int j = rows.Count; for (int i = afterRowId + 2; i < j; i++) { GridRow r = rows[i]; r.RowIndex = i; } }
public void Add(GridRow row) { int lastcount = rows.Count; row.RowIndex = lastcount; if (lastcount > 0) { row.Top = rows[lastcount - 1].Bottom; } rows.Add(row); if (!row.IsBoundToGrid) { foreach (GridColumn column in table.GetColumnIter()) { column.CreateGridItemForRow(row); } } row.SetOwnerParentRowCollection(this); OwnerInvalidateGraphicAndStartBubbleUp(); }