public void UpdateUI()
        {
            UserGroupRowData userGroupRow = UserGroupsGridPanel.SelectedUserGroup;

            if (userGroupRow == null)
            {
                // no device being selected
                EditUserGroupButton.Enabled   = false;
                DeleteUserGroupButton.Enabled = false;
            }
            else
            {
                EditUserGroupButton.Enabled   = true;
                DeleteUserGroupButton.Enabled = true;
            }

            UserGroupsGridPanel.RefreshCurrentPage();
            SearchUpdatePanel.Update();
        }
 protected void SearchButton_Click(object sender, ImageClickEventArgs e)
 {
     UserGroupsGridPanel.Refresh();
 }