DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How do I....

  1. #1
    Join Date
    Aug 2004

    How do I....

    [Originally posted by Avi]

    I'm using ListView control in order to show results of a query. For example, say I want to show all the invoices recieved from a company, so the user can write the name of a company and all the invoices recieved from that company will be shown in the ListView control.
    So far I don't have any problems with that.
    My problem begins when I double click a line in the list. At the moment, when the user double clicks, the input form of the invoices is shown to him, without any connection to number of invoice he clicked. Say the number of the invoice is 4...I want to go to that record in the input form...How do i show the user that invoice's details, say 4, in the input form..that is my

  2. #2
    Join Date
    Aug 2004

    Re:How do I....

    [Originally posted by Mrugendra Bhure]

    You must store the Invoice number in one of the columns of your listview. Now using the listview_Itemclick event use the Item.text property if first col contains No or Item.SubItems(colNumber + 1).value to get the Invoice Number , then open the form and navigate it to specific record.

    Hope this helps.
    You can also download similar sample Master-Detail Data Entry With datareports from code section which shows the˙ use of listview.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center