how to increase row height of listview RRS feed

  • Question

  • hi,

    In a listview can we change the height of row???

    Actually i am having a listview having 2 column..

    if the data in database is larger then the width specified then that data should appear

    on the another line...

    so can we manage row height dynamically...

    all helps will be appreciated...

    thnx in advance...

    Saturday, December 23, 2006 8:35 AM


  • The height of a listview item is entirely controlled by the listview's Font property.  You can't have multiple lines in an item unless you use custom drawing with OwnerDraw/DrawItem.  Using a font half the size of the listview's Font in DrawItem gives you enough space for two lines.  You can't adjust the height for each individual item.  Consider a commercial grid control if you can't live with these restrictions.
    Saturday, December 23, 2006 2:31 PM