Пример #1
0
 void LoadRecords()
 {
     dgDetails.Rows.Clear();
     oRole = new DataAccess.Role();
     foreach (DataRow row in oRole.GetRole("", "").Rows)
     {
         dgDetails.Rows.Add(row[0], row[1], row[2]);
     }
 }
Пример #2
0
        void LoadRole()
        {
            oRole = new DataAccess.Role();
            cboRole.Items.Clear();
            cboRole.DataSource = oRole.GetRole("", "");

            cboRole.DisplayMember = "ROLE";
            cboRole.ValueMember   = "ROLE";
            cboRole.Text          = string.Empty;
        }
Пример #3
0
 public void LoadRole()
 {
     try
     {
         oRole = new DataAccess.Role();
         dgDetails.Rows.Clear();
         eVariable.DisableGridColumnSort(dgDetails);
         foreach (DataRow row in oRole.GetRole("", "").Rows)
         {
             dgDetails.Rows.Add(row[0], row[1], row[2]);
         }
     }
     catch (Exception ex)
     {
     }
 }