DepartmentsSectionsParameterBu ilder pm1 = new DepartmentsSectionsParameterBu ilder();
pm1.AppendEquals( DepartmentsColumn. AssetId, assetId.ToString());
pm1.AppendEquals(
TList<DepartmentsSections> objDeptList = DataRepository. DepartmentsSectionsProvider. Find(pm1.GetParameters());
DataSet dsNode = new DataSet();
if (dsNode != null && dsNode.Tables[0].Count > 0 )
if (dsNode != null && dsNode.Tables[0].Count > 0 )
{
dsNode = objDeptList.ToDataSet(true); //--Convert from List to dataset
DataView dv = dsNode.Tables["Departments"].DefaultView;
dsNode = objDeptList.ToDataSet(true); //--Convert from List to dataset
DataView dv = dsNode.Tables["Departments"].DefaultView;
dv.RowFilter = "SectionName='Section1'";
}
}
No comments:
Post a Comment
Comments