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 upload an excel in c# ASP.Net?

3 Answers  


How to get Dynamically Linked Comboboxes Set?

0 Answers   HCL,


What do you create for easier access of data?

3 Answers   NIIT,


how to track links visited in google using iframes

0 Answers  


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

2 Answers  






ArrayList declaration in .net

0 Answers  


Data Reader Vs DataSet

5 Answers   TCS,


Coding for Synchronizing Cache Access in ASP.NET?

0 Answers  


Code for Presenting Parent/Child Data in a Data Grid Row?

0 Answers   TCS,


Code for Creating a Form Using PlaceHolder Controls?

0 Answers   Arena, JSA,


Code for Sending E-Mail with System.Web.Mail?

2 Answers  


How to use Client-side Script to Focus Controls in ASP.NET?

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