public void ViewModules() { ModulesBSO modulesBSO = new ModulesBSO(); DataTable table = modulesBSO.MixModules(); DataView dataView = new DataView(table); // dataView.RowFilter = "Modules_Url <> 'listmodules' and Modules_Url <> 'editmodules' "; dataView.RowFilter = "Modules_Url not in ('listmodules','editmodules')"; DataTable dataTable = dataView.ToTable(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToCheckBoxList(chklist, dataTable, "Modules_Name", "Modules_Url"); }
public void ViewPermission() { PermissionBSO permissionBSO = new PermissionBSO(); DataTable table = permissionBSO.GetPermissionAll(); DataView dataView = new DataView(table); dataView.Sort = "PermissionID ASC"; DataTable dataTable = dataView.ToTable(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToCheckBoxList(chklist, dataTable, "PermissionName", "Value"); }