Пример #1
0
    private void RefreshGrid(int AccomodationTypeId, int RegionId)
    {
        AccomodationMaster oAccomMaster = new AccomodationMaster();

        AccomodationDTO[] oAccomData = oAccomMaster.GetData1(RegionId, AccomodationTypeId, 0);
        if (oAccomData != null)
        {
            if (oAccomData.Length > 0)
            {
                dgAccomodations.DataSource = oAccomData;
                dgAccomodations.DataBind();
            }
        }
        else
        {
            dgAccomodations.DataSource = null;
            dgAccomodations.DataBind();
        }
        ClearControls();
    }