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
racheal
NA
2
0
Data binding
Jul 26 2005 11:01 PM
Hi there,
I am a beginner of c# and currently working on a project. I am facing some problems now.
I have a list view, where the list view will navigate rows in the data table. There is some errors in
the codes below, may i know what's wrong with it and how should i correct it so that this can works
correctly? Or is there any other way to do so?
//building a list view
ListViewItem
item;
DataRow
row;
for
(
int
i=0; i < dataset1.Tables[
"employee"
].Rows.Count; i++)
{
row = dataset1.Tables[
"employee"
].Rows; //error
item =
new
ListViewItem
(row[
"myColumn"
]); //error
item.Tag = i;
}
Thanks.
Reply
Answers (
1
)
Tracking names of dynamically generated controls
C# and Networking