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
Cenk Isik
NA
44
30.5k
List<> Problem Help me
Sep 4 2012 2:56 AM
Hi everyone,
I've a List that return havaIcons and I'm adding xml data to list because;
List add last data everytime.
My first data is lost from list
I used add Method but not work and used insert method with index parameter not work again
List<havaIcons> havaIconsClasses = new List<havaIcons>();
havaIcons havaIconsClass = new havaIcons();
for (int i = 0; i < xmlHavaIcons.GetElementsByTagName("data").Item(0).ChildNodes.Count; i++)
{
havaIconsClass.VirtualIconType = xmlHavaIcons.GetElementsByTagName("data").Item(0).ChildNodes.Item(i).Attributes["label"].Value;
havaIconsClass.RealIcon = xmlHavaIcons.GetElementsByTagName("data").Item(0).ChildNodes.Item(i).Attributes["data"].Value;
havaIconsClasses.Insert(i,havaIconsClass);
}
please HELP ME!
Reply
Answers (
2
)
i am creating keyboard control in one form that keyboard form is calling another form but my problem is both form is working simultaneously in c#.net
datagrid with sum query