Results 1 to 2 of 2

Thread: Change back color of a single cell in datagridview

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2007
    Posts
    104

    Change back color of a single cell in datagridview

    Hi,
    how i can change the back color of a single cell of a datagridview in runtime?
    Report your software freeware, it's free

    http://intotheapp.blogspot.com

    a blog with only free software

  2. #2
    Frenzied Member stateofidleness's Avatar
    Join Date
    Jan 2009
    Posts
    1,780

    Re: Change back color of a single cell in datagridview

    vb.net Code:
    1. With DataGridView1
    2.      .Rows(index).Cells(index).Style.BackColor = Color.Green 'Color of choice. Index is the index of the row/column you want to reference (zero-based)
    3. End With

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