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
sasa lazic
NA
104
49.8k
List View
Feb 19 2013 12:56 PM
My problem.
This is code.
listView1.Columns.Add("Col1");
listView1.Columns.Add("Col2");
string[] strArrGroups = new string[3] { "FIRST", "SECOND", "THIRD" };
string[] strArrItems = new string[4] { "one", "two", "tri", "cetiri" };
for (int i = 0; i < strArrGroups.Length; i++)
{
int groupIndex = listView1.Groups.Add(new ListViewGroup(strArrGroups[i], HorizontalAlignment.Left));
for (int j = 0; j < strArrItems.Length; j++)
{
ListViewItem lvi = new ListViewItem(strArrItems[j]);
lvi.SubItems.Add("Hasta la Vista, Mon Cherri!");
listView1.Items.Add(lvi);
listView1.Groups[i].Items.Add(lvi);
}
}
I dont now how to include new column and write in new column
new srting[] strArrPrimer = {"1","2","3","4"}
Thanks for help
Reply
Answers (
8
)
make an event for cleaning a textbox
Interface related design question