how to include a checkbox in listview at runtime in c#.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dinesh Kannan
    New Member
    • Jan 2011
    • 2

    #1

    how to include a checkbox in listview at runtime in c#.

    I have an listview.I want to create a checkbox in each row of the listview at runtime.
    If i checked a checkbox in listview it will be added that row in my database
  • Samuel Jones
    New Member
    • Jan 2011
    • 48

    #2
    Why would you want to do that at runtime? wouldn't it be simpler to just use a checklistbox all the time?

    Anyways. what i can suggest is that you create a checklistbox that resides underneath the original listbox.
    Hide and disable the one you don't need, and transfer the items between them.

    Comment

    • Dinesh Kannan
      New Member
      • Jan 2011
      • 2

      #3
      Thank You Jones

      Comment

      Working...