/// <summary> /// Initializes the control. You need to specify how to connect to the /// SQL Server database and if you want to populate the whole table content or /// only a subset (based on its foreign keys). The data will only be populated once /// you have called the RefreshData method. /// </summary> public void Initialize(System.Net.NetworkCredential networkCredential) { this.networkCredential = networkCredential; supplierWebService = new WS_Supplier.Supplier(); supplierWebService.Credentials = this.networkCredential; string url = ConfigurationSettings.AppSettings["WS_Supplier"]; if (url != null && url.Length != 0) { supplierWebService.Url = url; } }