Пример #1
0
        private static void ClearBindings(ControlBindingsCollection b)
        {
            var bindings = new Binding[b.Count];

            b.CopyTo(bindings, 0);
            b.Clear();

            foreach (var binding in bindings)
            {
                TypeDescriptor.Refresh(binding.DataSource);
            }
        }