private void btnRefresh_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; IEnumerable <ActionLog> items; items = App.CurrentUser.User.RoleClass.Can("SysAdmin") ? ActionLog.GetAllLogs() : ActionLog.GetAllLogs(App.CurrentUser.User.Username); //dataGridView1.DataSource = items; actionLogBindingSource.DataSource = items; }