﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Enhancement Requests  » Add an overload to NewRow</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 14:28:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Add an overload to NewRow</title><link>http://forum.strataframe.net/FindPost9410.aspx</link><description>Would it be possible to add an overload to NewRow to allow a datarow to be passed in?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Thu, 07 Jun 2007 22:22:40 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Add an overload to NewRow</title><link>http://forum.strataframe.net/FindPost9427.aspx</link><description>:D Yeah, it'll get ya :)</description><pubDate>Thu, 07 Jun 2007 22:22:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Add an overload to NewRow</title><link>http://forum.strataframe.net/FindPost9422.aspx</link><description>It already yelled at me about that:hehe:</description><pubDate>Thu, 07 Jun 2007 16:23:10 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Add an overload to NewRow</title><link>http://forum.strataframe.net/FindPost9420.aspx</link><description>Yeah...you just have to be careful of primary keys....just like you did in FoxPro :)</description><pubDate>Thu, 07 Jun 2007 15:53:57 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Add an overload to NewRow</title><link>http://forum.strataframe.net/FindPost9419.aspx</link><description>Thanks Trent that helps I am trying to something like scatter memvar in foxpro where&amp;nbsp;I am on a record and copy it to memory&amp;nbsp;change the values of a few fields and then insert it back in the same table.</description><pubDate>Thu, 07 Jun 2007 15:38:39 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Add an overload to NewRow</title><link>http://forum.strataframe.net/FindPost9417.aspx</link><description>[quote]On the CopyDatafrom method does that copy the entire data data table or just the current row?[/quote]&lt;/P&gt;&lt;P&gt;You can have it copy from the DataTable or the DataView.&amp;nbsp; So if you use the DataView you could filter out just that one record then the CopyDataFrom would only move in that one record.&amp;nbsp; This is the second parameter of the CopyDataFrom method that specifies the data that will be copied in and from where.&lt;/P&gt;&lt;P&gt;FYI....all DataTables already have a view attached to them so this is the view that will be used when using that option:&lt;/P&gt;&lt;P&gt;[codesnippet]MyDataTable.DefaultView[/codesnippet]</description><pubDate>Thu, 07 Jun 2007 15:20:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Add an overload to NewRow</title><link>http://forum.strataframe.net/FindPost9415.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;No problem on when it gets in. I have it as an overloads in my base bus layer but i was just worried about if you change something in newrow&amp;nbsp;might break my overload. &lt;/P&gt;&lt;P&gt;On the CopyDatafrom method does that copy the entire data data table or just the current row?</description><pubDate>Thu, 07 Jun 2007 15:08:26 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Add an overload to NewRow</title><link>http://forum.strataframe.net/FindPost9412.aspx</link><description>Why don't you just use the CopyDataFrom method on the BO because if you already have another DataRow it has to come from another DataTable.&amp;nbsp; You can append to the current data table rather than overwriting all of the internal data.&amp;nbsp; You will then have to set that row to Added:&lt;/P&gt;&lt;P&gt;CurrentRow.SetAdded()&lt;/P&gt;&lt;P&gt;You could also add an overload yourself by creating your own BO base class that inherits from the BusinessLayer then you inherit your BOs off of that class which has the NewRow overload you are expecting.&lt;/P&gt;&lt;P&gt;We can add this to the list, but it won't make it into 1.6.1. :)</description><pubDate>Thu, 07 Jun 2007 14:14:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>