[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 375
  • Last Modified:

Change the display color of a datagrid

Hi Experts,

I have a VB program that uses datagrid. I'd like to change the color of the datagrid ( not the forecolor or backcolor but the whole datagrid ).

thanks.

TJ
0
protugy
Asked:
protugy
  • 8
  • 7
1 Solution
 
computerg33kCommented:
I believe what you want to do is change the backcolor and make the "CaptionVisiable" false.  
0
 
protugyAuthor Commented:
but if you do caption visible false, will the captions disappear?

0
 
computerg33kCommented:
yes--if u want to keep the caption--and have the datagrid all one color than just change the backcolor and the captionbackcolor
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
protugyAuthor Commented:
the thing is I can't the change the color of the datagrid..

thanks.
0
 
computerg33kCommented:
what do u mean u can't change the color of the datagrid...click on the datagrid...go to the properties....and go to backcolor to change it.
0
 
protugyAuthor Commented:
if you do that, it will change the color of the datagrid rows.. not the datagrid display color..

0
 
computerg33kCommented:
you want to change the gridlinecolor?
0
 
protugyAuthor Commented:
I wanna change the color of the whole datagrid just like you change the color of a form

the default color is grey.. i wanna change it to something else.

0
 
computerg33kCommented:
right--and inorder to do that u need to change the backcolor.  If you want your captions to be the same color you would do the same-change the captionbackcolor.

I guess what i'm not understanding is u don't want to change the color of the datagrid rows.  Just the display color.  So from this I'm guessing that you want the default color of grey to be lets say orange.  In order to run your program and have the datagrid display orange, you would need to click on the datagrid, go to properties, and change the backcolor.
0
 
protugyAuthor Commented:
that's right.. I wanna keep the datagrid color rows as white. Now, just like you said, I went to properties and clicked on the color tab. There are only 2 choices; the forecolor and the backcolor. When I changed the backcolor, the color of the row changed not the background color..

sorry for the confusion!
0
 
computerg33kCommented:
if you leave your alternating back color as white, your rows will stay white and the backcolor will stay orange.
0
 
computerg33kCommented:
also leave ur backcolor white--just your backgroundcolor should be the color that you want to be in the background
0
 
protugyAuthor Commented:
May I ask where I can change the alternating backcolor and backgroundcolor. Also FYI, I'm using VB 6.0.

thanks.
0
 
computerg33kCommented:
ah---now I see why this was taking longer than expected--I do not believe that you can do this function w/ out vb.net.  
0
 
protugyAuthor Commented:
ahh.. that sucks!

thanks anyway.. here are your points!

TJ
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now