Ask a Question related to ASP.NET General, Design and Development.
-
Joseph D. DeJohn #1
DataSet to DataSet
Hello,
I'm trying to copy data from one DataSet to another DataSet. My
question is, how do you access a column in a specific row. Similar to an
array. Can you do that? I'm sure there is something basic I'm just not
understanding.
// Now fill temporary DataSet to be the DataSource.
for(int i = firstNumberOfRecord; i <= lastNumberOfRecord; i++)
{
// Declare a Row object.
DataRow newRow = m_dsAccountsCustom.Tables[0].NewRow();
// Transfer values into the new columns.
newRow[0] = m_dsAccounts.Tables[0].Column[0];
newRow[1] = m_dsAccounts.Tables[0].Column[1];
newRow[2] = m_dsAccounts.Tables[0].Column[2];
newRow[3] = m_dsAccounts.Tables[0].Rows;
newRow[4] = m_dsAccounts.Tables[0].Rows[i].Column[4];
// Add the new row to the temporary DataSet.
m_dsAccountsCustom.Tables[0].Rows.Add(newRow);
}
--
Sincerely,
Joseph D. DeJohn
[url]http://www.geocities.com/cujdd5/[/url]
Joseph D. DeJohn Guest
-
Dataset.length(), dataset.hasnext() not working.. Why?
I have a dataset that has 3 items, yet when I test for it, it is "undefined". Any ideas why this property would not be available? Thanks Geoff -
help about dataset
Hi, do you know why i got error on this: da = new SqlDataAdapter(); ds = new DataSet(); -
dataset.Databind error when dataset XML contains attributes...
I've come accross an interesting problem populating an asp.net datagrid. I am trying to bind XML data to a datagrid as I've done in countless other... -
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset
Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data... -
SQL and Dataset
try MATCHES instead of LIKE "jayuya" <jayuya@cox.net> wrote in message news:017e01c35497$ad3d3390$a601280a@phx.gbl... -
Rory #2
DataSet to DataSet
what about..
m_dsAccounts.Tables[0].Rows[i][4];
another DataSet. My>-----Original Message-----
>Hello,
> I'm trying to copy data from one DataSet torow. Similar to an>question is, how do you access a column in a specificbasic I'm just not>array. Can you do that? I'm sure there is somethingi++)>understanding.
>
>// Now fill temporary DataSet to be the DataSource.
>
>for(int i = firstNumberOfRecord; i <= lastNumberOfRecord;>
>{
>
>// Declare a Row object.
>
>DataRow newRow = m_dsAccountsCustom.Tables[0].NewRow();
>
>
>// Transfer values into the new columns.
>
>newRow[0] = m_dsAccounts.Tables[0].Column[0];
>
>newRow[1] = m_dsAccounts.Tables[0].Column[1];
>
>newRow[2] = m_dsAccounts.Tables[0].Column[2];
>
>newRow[3] = m_dsAccounts.Tables[0].Rows;
>
>newRow[4] = m_dsAccounts.Tables[0].Rows[i].Column[4];
>
>// Add the new row to the temporary DataSet.
>
>m_dsAccountsCustom.Tables[0].Rows.Add(newRow);
>
>}
>
>
>--
>Sincerely,
>Joseph D. DeJohn
>[url]http://www.geocities.com/cujdd5/[/url]
>
>
>.
>Rory Guest



Reply With Quote

