コード例 #1
0
 void updateDataGridView()
 {
     Cursor.Current = Cursors.WaitCursor;
     dgvUser.Rows.Clear();
     serviceDA = new DBControllerWSClient();
     users     = new BindingList <user> (serviceDA.queryAllUser());
     for (int i = 0; i < users.Count; i++)
     {
         dgvUser.Rows.Add(new String[] {
             users[i].user1, users[i].expirationDate.ToString()
         });
     }
     Cursor.Current = Cursors.Arrow;
 }