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

What do you create for easier access of data?

3 Answers   NIIT,


How to add checkbox to datagrid?

5 Answers  


hold checkbox values

4 Answers  


where is assembly are store

5 Answers   C DAC,


How to Export Data to Excel?

4 Answers   Eastcom Systems,


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

3 Answers  


i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this

1 Answers   Crompton Greaves,


what is software testing

1 Answers   TCS,


what is the value that reside in a hidden field when no value is assigned to it?how it can be used in a if statement??

1 Answers  


how to create a search bar which access data from various websites and retrieves the data

1 Answers  


What is the code of Password Recovery or Forget your password? Plz tell in c # language.

1 Answers  


Code for Getting Information About A File?

1 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)