Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to get first object of checked listview

How to get first object of checked listview

Scheduled Pinned Locked Moved C#
tutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Trivikram Dwivedi
    wrote on last edited by
    #1

    How to get first object of checked listview without using foreach loop.

    R 2 Replies Last reply
    0
    • T Trivikram Dwivedi

      How to get first object of checked listview without using foreach loop.

      R Offline
      R Offline
      robmays
      wrote on last edited by
      #2

      does this help DataGridItem Item = lstLeads.SelectedItem; //get value of checkbox CheckBox aptCheck = (CheckBox)e.Item.Cells[5].Controls[1];

      R 1 Reply Last reply
      0
      • R robmays

        does this help DataGridItem Item = lstLeads.SelectedItem; //get value of checkbox CheckBox aptCheck = (CheckBox)e.Item.Cells[5].Controls[1];

        R Offline
        R Offline
        robmays
        wrote on last edited by
        #3

        tidy up a bit ListView Item = dtgLeads.SelectedItem; //get value of checkbox CheckBox aptCheck = (CheckBox)Item.Cells[0].Controls[1];

        1 Reply Last reply
        0
        • T Trivikram Dwivedi

          How to get first object of checked listview without using foreach loop.

          R Offline
          R Offline
          robmays
          wrote on last edited by
          #4

          ListViewItem it = lstGuarantee.SelectedItems[0]; if(it.Checked) { }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups