Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7721957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:03:47+00:00 2026-06-01T04:03:47+00:00

With 2 columns, everything works correct, all the background in the TreeView is white.

  • 0

With 2 columns, everything works correct, all the background in the TreeView is white.

But as soon as I add a third column (all three are default CellRendererText), the rows in the first one suddenly have a light grey background.

To show what I mean, I have uploaded a picture: enter image description here

As you can see at the red arrow, the background in the first column is grey. I have NOT set this anywhere, so why does it do that? It looks really ugly.

As you can see at the blue arrow, I have set the background color of the CellTextRenderer at that row to white. Unfortunately, it only sets the immediate space around the letters white, so the rest of grey remains.

The green arrow points to the third column, which works correctly.

.

As a workaround, I tried inserting an empty column in front of the first column.

It is still the old first column (now second) that had grey background. So there must be something special about that column. Could it be that the column has grey background because it is sorted? It really is the only difference between that column and the others.

Any idea what causes this and how it can be prevented?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:03:48+00:00Added an answer on June 1, 2026 at 4:03 am

    I came back to the problem after some weeks and figured out that it was this line causing the grey background:

    column.SortIndicator = true;
    

    I’m pretty sure that this is intended to only show the little triangle at the top of the row, but due to some bug (I guess) it also kind of marks the whole column under certain circumstances.

    Anyway, removing that line fixed the problem. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if I set a datagrid with 3 fixed width columns everything works as expected
I have a grid panel that is not shown in IE8 but everything works
I am trying to build a table using jQuery Datatables. Everything works on all
I added the columns in the select list to the order by list, but
Given a columns' index, how can you get an Excel column name? The problem
How would one get columns information on table which he doesn't own, but has
I have three columns in my table - company_name, first_name, last_name . In the
I generate all my columns in a subclassed DataGridView programmatically. However Visual Studio 2008
I am creating a 2D array class in C++. Everything works fine for a
I have a datagridview on a form with multiple columns. Three of the columns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.