C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







Table Losing Index in when copying Table


Posted Date: 18 Jul 2008      Total Responses: 1

Posted By: mario alberto de la mora flores       Member Level: Bronze     Points: 1


hi, thanks for the answers for the post Copy From a Table to a Table, this is what i did:

classname matrix = new classname();
Table TableA = matrix.method(ValueA,ValueB);
RowsA = TableA.Rows.Count;
try
{
for (int i = 0; i < RowsA; i++)
{
TableB.Rows.Add(TableA.Rows[i]);
}
}

This works almost fine, because the index dont work rigth.
Example
If i have 10 rows,it only copies the rows 1,3,5,7,9 , and it displays a index error, i dont know why? i have traced the code and when it copies the info, it also deletes it from the table or kind of miss reading it.

Thanks in Regard




Responses

Author: mario alberto de la mora flores    18 Jul 2008Member Level: BronzeRating:     Points: 4
already found the answer Thanks!!
It goes like this:
classname matrix = new classname();
Table TableA = matrix.method(ValueA,ValueB);
RowsA = TableA.Rows.Count;
try
{
for (int i = 0; i < RowsA; i++)
{
TableB.Rows.Add(TableA.Rows[0]);
}
}
Thanks anyway!



Post Reply
You must Sign In to post a response.
Next : USER TRACKING in VS2005 + C#
Previous : How to pass values between pages?
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use