コード例 #1
0
        void LoadPosition()
        {
            oPostion = new DataAccess.Position();
            cboPosition.Items.Clear();

            cboPosition.DataSource = oPostion.getPosition("", "");

            cboPosition.DisplayMember = "POSITION";
            cboPosition.ValueMember   = "ID";
        }
コード例 #2
0
 public void LoadPosition()
 {
     try
     {
         oPosition = new DataAccess.Position();
         dgPosition.Rows.Clear();
         eVariable.DisableGridColumnSort(dgPosition);
         foreach (DataRow row in oPosition.getPosition("", "").Rows)
         {
             dgPosition.Rows.Add(row[0], row[1], row[2]);
         }
     }
     catch (Exception ex)
     {
     }
 }