>DataTable Products = csCOSApp.ActiveProject.dsDataStore.Tables[0].Select("ProductId > 0").CopyToDataTable(); >>
// Your DataTable has to already exist DataTable Products = new DataTable(); csCOSApp.ActiveProject.dsDataStore.Tables[0].Select("ProductId > 0").CopyToDataTable(Products, LoadOption.PreserveChanges, delegate{});The anonymous delegate is the exception handler, and since you really don't need it to do anything, it can be an empty method.