locked
Create button in Listview cell RRS feed

  • Question

  • Hi,

    I'm using Visual Studio 2005 C#

    Is it possible to create a button in a Listview cell?

    If it's not, does anyone have any idea how to create a normal table and I would like to put a button in a cell?

    Thanks,
    Tuesday, September 30, 2008 5:29 AM

Answers

  • Or a DataGridView.  It supports columns that contains buttons.  It is not possible with a LV.
    Wednesday, October 1, 2008 4:14 PM

All replies

  • Hi buddy

     

    Do U want to partition you form area and place a button..is that  you want..??

    Tuesday, September 30, 2008 7:34 AM
  • Hi,

    No, I don't want to put a button in a form area.

    I have a ListView with "details" view and would like to put a button in one of the cell.

    For example,

    |  Column1  |   Column2  |  Column 3  |
    -------------------------------------------------------
    | Text abc   |  button1     | button2      |
    | Text def    |  button2     | button2      |
    -------------------------------------------------------

    Is this possible? or any ideas how to create a custom table?

    Thanks Smile
    Tuesday, September 30, 2008 11:21 PM
  • Hi,

     

    As per your requirement it seems that you can use "TableLayoutPanel" control...

     

    just see if it works out for you...

    Wednesday, October 1, 2008 5:10 AM
  • Or a DataGridView.  It supports columns that contains buttons.  It is not possible with a LV.
    Wednesday, October 1, 2008 4:14 PM