TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Deepak Gupta
NA
15
19.5k
Dataview copy throws errror
Aug 18 2009 9:52 AM
I have 2 dataview and i want to add some rows of Dataview2 to Dataview1. here is my code, Dataview Dataview1 = new Dataview(); for(i=0;i<5;i++){ Dataview1.Table.Rows.Add(Dataview2.Table.Rows[i]); } But in the for loop duing the row add, it shows me some Type casting error like 'Object reference not set to an instance of an object.'. Can someone please help me out to resolve this issue? Thanks!
Reply
Answers (
4
)
Indexing
Hiding an inherited class