public void Clear() { TxtUserGroupID.Text = ""; TxtUserGroup.Text = ""; TxtDescription.Text = ""; CboDistribution.Text = ""; LblMessage.Text = ""; DgvGroups.DataSource = null; DgvGroups.DataBind(); loadUserList(); loadUserGroupList(); }
public void loadUserGroupList() { try { DataTable dt = objUser.GetAlluserGroups(); if (dt.Rows.Count > 0) { DgvGroups.DataSource = dt; DgvGroups.DataBind(); } } catch (Exception ex) { LblMessage.Text = ex.Message.ToString(); } }