void btnUpdate_Click(object sender, EventArgs e)
{
string group_name = CreateForm(string.Empty);
if (group_name == null) { return; }
int groupid = int.Parse(lvGroups.SelectedItems[0].Tag.ToString());
Database.GroupDetails gd = new Database.GroupDetails();
gd.GroupID = groupid;
gd.GroupName = group_name;
GlobalHelper.dbGroups.Save(false, gd);
// let's just repopulate for a while
PopulateListView(lvGroups);
}