runtime listview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uday1302
    New Member
    • Mar 2008
    • 18

    runtime listview

    Hi Guys..
    I want to create a listview at runtime wen button is clicked.
    can anyone know code for these using C#..its very urgent
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Usually as easy as giving it a datasource to bind to, what have you tried so far?

    Comment

    • uday1302
      New Member
      • Mar 2008
      • 18

      #3
      I have inserted a textbox,button and a listview in a form . here it is like if i entered a empname or empid in textbox and press btn. values r retrived frm exisiting database- table and displayed in listview.
      I want the lsit view to be created at run time??hope guys you understood..???/

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Originally posted by uday1302
        I have inserted a textbox,button and a listview in a form . here it is like if i entered a empname or empid in textbox and press btn. values r retrived frm exisiting database- table and displayed in listview.
        I want the lsit view to be created at run time??hope guys you understood..???/
        If you are creating a desktop application check out the System.Windows ListView class.

        If you are creating a web application check out the System.Web.UI ListView class.

        When ever I get stuck, I always check out the MSDN library first. It's a great resource.

        -Frinny

        Comment

        Working...