Advertisement

09.07.2007 at 07:57AM PDT, ID: 22813526
[x]
Attachment Details

Questions about listview control in the vb.net 2005 windows form application

Asked by faresahmad in Windows Forms for .Net, Visual Studio .NET 2005, .NET Framework 2.0

Tags: listview, 2005

Dear experts

i want to ask three question about the listView control


1)how i can add a columns header to the listview control (i added the columns to the listview but this columns header did not appear to the listview)

2)how i can bind a list of object to the listview control   for example
     
     Dim lstObj As New List(Of HoliDayData)
     
     this list of objects return from database , i want to ask how i can put this list of object in the listView control
  and appear like the DataGrid . (Rows and columns ---- note that each object in the list lstObj represent a row in the database and will appear as a row in the listview )
---------------------------------------------------------------

      HoliDayName     StratDate       EndDate                   >>>>>  columns Headers
----------------------------------------------------------------
      ABC              1/1/2007       3/1/2007                  >>>>> row
      DEF              3/5/2007       7/3/2007                  >>>>>row
      GHI              6/7/2007       7/7/2007                  >>>>>row
----------------------------------------------------------------


3) i want to ask how i can do this scenario ,    
   there are a one texbox represent a holiday name and two DateTimePicker  represent the start and end date of the holiday
   i want when i click by mouse on a one row in the listview control take the value of the (holiday name , holiday start date , holiday end date ) for this row and fill this values in
the textbox and two DateTimePicker  , in other words bind the listview with this controls .




Start Free Trial
[+][-]09.07.2007 at 08:10AM PDT, ID: 19848348

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.07.2007 at 08:18AM PDT, ID: 19848423

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.07.2007 at 08:24AM PDT, ID: 19848496

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows Forms for .Net, Visual Studio .NET 2005, .NET Framework 2.0
Tags: listview, 2005
Sign Up Now!
Solution Provided By: webtubbs
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628