public void EnsureChecksColumnVisible() { if (_tree.InvokeRequired) { _tree.Invoke(new MethodInvoker(EnsureChecksColumnVisible)); return; } var checksCol = _tree.AllColumns.FirstOrDefault(c => string.Equals(c.Text, ChecksColumnName)); if (checksCol != null && !checksCol.IsVisible) { checksCol.IsVisible = true; _tree.RebuildColumns(); } }
public static void InvokeRebuildAll(this TreeListView control, bool preserveState) { control.Invoke(() => control.RebuildAll(preserveState)); }
public static void InvokeExpand(this TreeListView control, object model) { control.Invoke(() => control.Expand(model)); }