// refresh the grid // links: // docLink: http://sql2x.org/documentationLink/a90065e7-8ace-4de7-9367-d4653a7c637f public void RefreshCrudeProductChangeSet() { var productChangeSet = new CrudeProductChangeSetServiceClient(); try { var bindingSource = new BindingSource(); bindingSource.DataSource = productChangeSet.FetchWithFilter( Guid.Empty , Guid.Empty , Guid.Empty , Guid.Empty , DateTime.MinValue ); dataGridViewCrudeProductChangeSet.AutoGenerateColumns = false; dataGridViewCrudeProductChangeSet.DataSource = bindingSource; dataGridViewCrudeProductChangeSet.AutoResizeColumns(); dataGridViewCrudeProductChangeSet.Refresh(); } catch (Exception ex) { if (ex == null) { } else { System.Diagnostics.Debugger.Break(); } } finally { productChangeSet.Close(); } }