Listview design in .net



Listview design in .net..

Answer / subha

first Place the list view control in form.(vb.net)
and place textbox and button.
coding:
In form load:Add the columns in list view.
listview1.columns.add("empname",100,HorizontalAlignment.left)
listview1.columns.add("dept",100,HorizontalAlignment.left)
Button click event:
dim str(15) as string
dim itm as ListviewItem
str(0)=txtname.text
str(1)=txtdept.text
itm=new ListviewItem(str)
listview1.items.add(itm)

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More ASP.NET Code Interview Questions

How to get the row index on checking a Checkbox in a ListView

1 Answers  


Code for Document Validation in XML.NET?

0 Answers   TCS,


how the value of label is printed through a button in asp.net web application

3 Answers  


where is assembly are store

5 Answers   C DAC,


how can we close a web page in asp.net without using jscript?

4 Answers  


How to send e-mail from an ASP.NET application?

16 Answers   DataPoint, Infosys, Persistent, Radar, TCS, Wipro,


how to design a ListView control?

1 Answers  


Code for Using Keyboard Events?

0 Answers  


how to upload a photo? i need to use it in a matrimonial applicaton...

1 Answers  


Give coding for Implementing a Fixed GridView Header in ASP.NET?

1 Answers  


How we implement the paypal in my website and how we make a payment through Credit Card.

2 Answers  


HOw to Build a Nested GridView Control with ASP.NET?

2 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)