private void FillAppSecurityGroups() { try { lbxAppGroups.Items.Clear(); DataSet ds = SecurityGroup.Items(); DataView dv = new DataView(ds.Tables[0]); dv.Sort = "DisplayIndex, Name"; lbxAppGroups.DataSource = dv; lbxAppGroups.DataTextField = "Name"; lbxAppGroups.DataValueField = "ID"; lbxAppGroups.DataBind(); } catch (Exception ex) { SPA.Error.WriteError(ex); if (ShowDebug) { lblErrorMessage.Text = ex.ToString(); } } }