C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

Data table urgent help me...


Posted Date: 24 Sep 2008      Posted By: venkat      Member Level: Gold     Points: 1   Responses: 1



Hi,

I to fill all the array data in datatable

for (int i = 1; i <=10; i++)
{
Excel.Range range = worksheet.get_Range("A" + i.ToString(), "J" + i.ToString ());
System.Array myvalues = (System.Array)range.Cells.Value2;
}

Any one tell me how to store System.Array of myvalues in a datatable .

Regards,
venkat.





Responses

Author: Elayaraja.K    24 Sep 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 3

you can use following code

dim dt as Datatable
dim drow as datarow
for i =i to arraylen
drow=dt.newrow()
drow(0)=array(i)
dt.rows.add(drow)
next i



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Different types of overriding?
Previous : how to draw rectangle,circle using drag and drop method(to draw flow chart) in asp.net(c#)
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use