if (mgDept.SelectedItem != null) { searchresults rslts = mgDept.SelectedItem as searchresults; if (rslts != null) { id = rslts.fileloc; } } exp = "dept_id = '" + id + "'"; DataRow[] foundrows = cvmanagerDataSet1.Tables["role"].Select(exp); for (int i = 0; i <= foundrows.Length; i++) { roleid = foundrows[i][0].ToString(); name = foundrows[i][2].ToString(); mgRoles.Items.Add(new searchresults(name, roleid)); }
id
mgRoles
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)