ChainStoreWeb.CorporateDataViewer.ShowInventory C# (CSharp) Method

ShowInventory() private method

private ShowInventory ( ) : void
return void
        private void ShowInventory()
        {
            using (SqlConnection conn = SQLAzureUtilities.GetActiveSqlConnection())
            using (SqlCommand cmd = conn.CreateCommand())
            {
                conn.Open();
                cmd.CommandText = "ShowInventory";
                cmd.CommandType = CommandType.StoredProcedure;
                SqlParameter tenant = cmd.Parameters.Add("@Tenant", SqlDbType.NVarChar);
                tenant.Value = spContext.SPHostUrl.ToString();

                inventoryGridView.DataSource = cmd.ExecuteReader();
                inventoryGridView.DataBind();
            }
        }