How would you add column headers in listview control?



How would you add column headers in listview control?..

Answer / vidyadhar

You can add columns in Listview by using Columns. Add() method. This method takes two arguments, first one is the Column heading and second one the column width. In the above code, "ProductName" is column heading and 100 is column width.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Visual Basic Interview Questions

Can we change back color of command button control? if yes than how it is possible?

4 Answers   Wipro,


What are constructors and destructors?

1 Answers  


Give brief description about class?

0 Answers  


Where can I get updated VB and other Microsoft files?

0 Answers  


reading lines from a file by searching a word(instr) and copying to other textfile,but its only copying only one line but there are some other lines match criteria but not copying to the files

2 Answers  


What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.

0 Answers  


How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation?

0 Answers  


what are the Types of LockEdits in RDO?

0 Answers  


How to down load image properties.

0 Answers  


Is there any way to pass a variable to a form apart from using global variables?

0 Answers  


What is the difference Between ADO and other data access objects?

2 Answers   HCL,


It possible to call OLEDB?s Features directly in VB without using any control?

0 Answers  


Categories