private void LoadBranches(int AreaID)
 {
     dataTable = datafile.GetBranches(AreaID);
     cboBranches.DataSource     = dataTable;
     cboBranches.DataValueField = "CompanyCode";
     cboBranches.DataTextField  = "Company";
     cboBranches.DataBind();
     if (dataTable.Rows.Count > 0)
     {
         if (dataTable.Rows.Count == 1)
         {
             cboBranches.Enabled = false;
             string district = dataTable.Rows[0]["CompanyCode"].ToString();
             cboBranches.SelectedIndex = cboBranches.Items.IndexOf(cboBranches.Items.FindByValue(district));
         }
         else
         {
             cboBranches.Enabled = true;
         }
     }
     else
     {
         cboBranches.Enabled = false;
     }
 }