Results 1 to 3 of 3

Thread: Flexible grid cells (ListViewSubitem backcolor property)

  1. #1

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Resolved Flexible grid cells (ListViewSubitem backcolor property)

    Hi,

    I'm currently working on a project that will need schedules management. It needs to be able to produce a table with different cell sizes.

    I've tryed doing a listview object (details view), with an extended bgn color which would simulate a bigger cell size. But the bgn color seems to be applyable on rows only... I can't restrict it to a cell...

    It's as if the Backcolor property of the ListVIewSubitem did no effect...

    any help on this would be appreciated...
    Attached Images Attached Images  
    Last edited by Ruku; Oct 26th, 2006 at 04:33 PM.

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Flexible grid cells (ListViewSubitem backcolor property)

    since you are using .NET 2.0, you could set ownerdraw to true for the listview, which will then raise the paint events so you can draw the items yourself using whatever colors you want.

  3. #3

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Re: Flexible grid cells (ListViewSubitem backcolor property)

    Nevermind, found what I was looking for: I just needed to set the UseItemStyleForSubItems of each ListViewItem set to false for it to work...

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width