CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2013

    Question How can i change backcolor of a an specific cell from an specific row in listview?

    Hi all
    listview is not able to change the back color of an specific cell from one of it's specific row...
    so i try to write a procedure to support that ability by myself
    the question is it : how to make a procedure with the header below to change cell back color!
    Private Sub CellSetBackColor(byref L as ListView, Byval ColIndex as byte, byval C as color)
    End Sub

  2. #2
    Join Date
    Jan 2006
    Fox Lake, IL

    Re: How can i change backcolor of a an specific cell from an specific row in listview

    Something like this worked for me:

    Private Sub ListView1_Click()
      If ListView1.SelectedItem.Index < 0 Then Exit Sub
      SetLIBackColor ListView1, ListView1.SelectedItem.Index, vbRed
    End Sub

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.