How would you add column headers in listview control?



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

Answer / Pankaj Sharma

To add column headers to a ListView control, you can use the `.Columns.Add` method. Here's an example:n```vbnetnlistView1.Columns.Add("Column 1 Header", 200)nlistView1.Columns.Add("Column 2 Header", 300)n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Visual Basic Interview Questions

what is the Property used to add a menus at runtime?

1 Answers  


How would you run your ActiveX Document Dll?

1 Answers  


What are different types of locks in ADODB?

4 Answers  


what is the Difference between Linked Object and Embedded Object?

1 Answers  


Under which circumstance does a VB application ignore a Timer event?

2 Answers  


in ADO connection string if password is leave blank and all others are given. what will happen

1 Answers   eFunds,


What is the difference between Single and Double in VB?

4 Answers  


What is the use of ActiveX Documents?

1 Answers  


In visual source safe if in middle of my program power was off and it was not save then wat will happen whether it will save or not? can any body tel me the answer for this.

8 Answers   Wipro,


How to use advanced data-bound controls.

1 Answers  


Dim X,Y as Integer Here what is the datatype of X and Y ?

8 Answers   Syscom,


what are the Differences Object and Class?

2 Answers  


Categories