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

Common UI for Multiple web applications. Suppose there are 35 websites using same third party controls.These 3rd party controls are made together that all 35 websites can use these controls.If we put all 3rd party controls and use its dll in 35 websites,only class files will be accessable. But I want to use CSS,images also in all 35 websites. how I can design the N-tier solution for this project.

0 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

0 Answers  


Code for Using Keyboard Events?

0 Answers  


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

1 Answers  






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

3 Answers  


Coding for .NET Delegates?

0 Answers  


Give coding for Exception Handling Techniques in ASP.NET?

3 Answers   Microsoft,


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

1 Answers  


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

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


How to Create Scrollable Micro Windows?

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)