public void FillCustomersRadGridView() { if (this.CustomersRadGridView.Rows.Count > 0) { this.CustomersRadGridView.DataSource = null; } this.CustomersRadGridView.DataSource = _serviceCustomer.FillGridView(); #region Columns of the GridView try { GridViewColumnCollection columns = this.CustomersRadGridView.Columns; //CustomerID Column GridViewDataColumn _customerIDColumn = columns["CustomerID"]; _customerIDColumn.IsVisible = false; //CustomerCode Column GridViewDataColumn _customerCodeColumn = columns["CustomerCode"]; _customerCodeColumn.HeaderText = "Código"; _customerCodeColumn.Width = 80; //CompanyName Column GridViewDataColumn _companyNameColumn = columns["CompanyName"]; _companyNameColumn.HeaderText = "Empresa"; _companyNameColumn.Width = 200; //ContactName Column GridViewDataColumn _contactNameColumn = columns["ContactName"]; _contactNameColumn.HeaderText = "Contacto"; _contactNameColumn.Width = 200; //Phone1 Column GridViewDataColumn _phone1Column = columns["Phone1"]; _phone1Column.HeaderText = "Teléfono"; _phone1Column.Width = 100; //Addresses Column GridViewDataColumn _addressesColumn = columns["Addresses"]; _addressesColumn.HeaderText = "Dirección"; _addressesColumn.Width = 500; //Province Column GridViewDataColumn _provinceColumn = columns["Province"]; _provinceColumn.HeaderText = "Provincia"; _provinceColumn.Width = 200; //Municipality Column GridViewDataColumn _municipalityColumn = columns["Municipality"]; _municipalityColumn.HeaderText = "Municipio"; _municipalityColumn.Width = 200; //Zone Column GridViewDataColumn _zoneColumn = columns["Zone"]; _zoneColumn.HeaderText = "Zona"; _zoneColumn.Width = 200; //Clear Selection ClearSelectionRadGridView(); } catch (Exception) { } #endregion }