protected override void CreateChildControls() { base.CreateChildControls(); for (int i = 0; i < Count; i++) { TagsRow row = new TagsRow(this); row.ID = "row" + i; containersTable.Controls.Add(row); } }
protected override void CreateChildControls() { base.CreateChildControls(); for (int i = 0; i < Count; i++) { TagsRow row = new TagsRow(this); row.ID = "row" + i; containersTable.Controls.Add(row); } }
public void BindTo(IList <AppliedTags> selectedTags) { Count = selectedTags.Count; EnsureChildControls(); int index = 0; foreach (AppliedTags change in selectedTags) { TagsRow row = containersTable.Controls[index++] as TagsRow; row.BindTo(change.Group); row.Select(change.Tags); } }