Пример #1
0
        private void LoadExtAccountInHiaraky(string KeyWord)
        {
            DataTable tb = MyAccount.GetAccountListForDDL(KeyWord, Program.AccountStatic.CompanyID, 1, true);

            try
            {
                if (tb != null)
                {
                    HanchyGrid.Visible = true;
                }
                else
                {
                    HanchyGrid.Visible = false;
                }
                if (tb.Rows.Count < 17)
                {
                    HanchyGrid.Height = 28 + (tb.Rows.Count * 22);
                }

                else
                {
                    HanchyGrid.Height = 240;
                }
                MyCommon.LoadDatatoTableWithoutBind(HanchyGrid, tb, "Load Accounts");
            }
            catch (Exception ex)
            {
                HanchyGrid.Visible = false;
            }
        }