/// <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_Pro_LngCategoryID">Value for this foreign key.</param> public void Initialize(System.Net.NetworkCredential networkCredential, WS_Product.WSInt32 FK_Pro_LngCategoryID) { this.networkCredential = networkCredential; productWebService = new WS_Product.Product(); productWebService.Credentials = this.networkCredential; string url = ConfigurationSettings.AppSettings["WS_Product"]; if (url != null && url .Length != 0) { productWebService.Url = url; } this.FK_Pro_LngCategoryID = FK_Pro_LngCategoryID; }