/// <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> /// <param name="FK_Oit_GuidOrderID">Value for this foreign key.</param> /// <param name="FK_Oit_GuidProductID">Value for this foreign key.</param> public void Initialize(System.Net.NetworkCredential networkCredential, WS_tblOrderItem_Record.WSGuid FK_Oit_GuidOrderID, WS_tblOrderItem_Record.WSGuid FK_Oit_GuidProductID) { this.networkCredential = networkCredential; tblOrderItem_RecordWebService = new WS_tblOrderItem_Record.tblOrderItem_Record(); tblOrderItem_RecordWebService.Credentials = this.networkCredential; string url = ConfigurationSettings.AppSettings["WS_tblOrderItem_Record"]; if (url != null && url.Length != 0) { tblOrderItem_RecordWebService.Url = url; } this.FK_Oit_GuidOrderID = FK_Oit_GuidOrderID; this.FK_Oit_GuidProductID = FK_Oit_GuidProductID; }