/// <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; tblCustomer_RecordWebService = new WS_tblCustomer_Record.tblCustomer_Record(); tblCustomer_RecordWebService.Credentials = this.networkCredential; string url = ConfigurationSettings.AppSettings["WS_tblCustomer_Record"]; if (url != null && url.Length != 0) { tblCustomer_RecordWebService.Url = url; } }