listview

  • Thread starter Thread starter Vishruth Ranjit
  • Start date Start date
V

Vishruth Ranjit

Hi,

Suppose we have 5 textboxes and one commandbutton.as soon
as we click that button the contents should be added to
our listview.So for that what's to be done.
I would appreciate if u could provide me the coding.

Thanking You.
 
Vishruth Ranjit said:
Hi,

Suppose we have 5 textboxes and one commandbutton.as soon
as we click that button the contents should be added to
our listview.So for that what's to be done.
I would appreciate if u could provide me the coding.

ListView.Items.Add(textBox1.Text);

Other then that, either ask a more spesific question, or give me your
teacher email, so I can send the homework directly to him.
 
In the click event handler of the button:
ListViewItem li;

li = new ListViewItem(textbox1.Text);
listView1.Items.Add(li);

li = new ListViewItem(textbox2.Text);
listView1.Items.Add(li);
 
* "Ayende Rahien said:
ListView.Items.Add(textBox1.Text);

Other then that, either ask a more spesific question, or give me your
teacher email, so I can send the homework directly to him.

LOL
 
Back
Top