private void BindData()
DataTable dt = YAF.Classes.Data.DB.accessmask_list(PageContext.PageBoardID, null);
DataTable filteredDataTable = new DataTable();
filteredDataTable = dt.Clone();
foreach (DataRow row in dt.Rows)
//Naming convention - all private forums access masks will be "Registered + forumname"
if (row["Name"].ToString() == "Registered " + PageContext.PageForumName)
// Import the Row into dt2 from dt1
AccessMaskID.DataSource = filteredDataTable;
AccessMaskID.DataValueField = "AccessMaskID";
AccessMaskID.DataTextField = "Name";
The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.