Click here to Skip to main content
13,769,395 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
How do I change the backcolor of a MySQL table with C#?

What I have tried:

How do I change the backcolor of a MySQL table with C#
Posted 11-Jul-18 12:23pm
Updated 11-Jul-18 15:21pm
Comments
Member 13904037 11-Jul-18 19:41pm
   
I have a Project in C# with Datagrindview of a MySQL Database. I want to Change the backcolor if the Data in Table was updated.
the table shows numbers. If it chngend from one to two , the backcolor should also be changed.
Patrice T 11-Jul-18 20:14pm
   
Use Improve question to update your question.
So that everyone can pay attention to this information.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

dataGridView.Rows[rowIndex].Cells[columnIndex].Style.BackColor = Color.Red;
/ravi
  Permalink  
Comments
Member 13904037 11-Jul-18 19:58pm
   
Thank you so much. Can I also say that if there is a Special number the Backcoler is yellow?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

There's no such thing. A table in a database engine has no color information. Only an application displaying data from the table would have anything like this.

How you change those colors depends on the application type and what control you're using to display the data.
  Permalink  
Comments
Member 13904037 11-Jul-18 19:34pm
   
I have a Project in C# with Datagrindview of a MySQL Database. I want to Change the backcolor if the Data in Table was updated.
Member 13904037 11-Jul-18 19:37pm
   
the table shows numbers. If it chngend from one to two , the backcolor should also be changed.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Quote:
How do I change the backcolor of a MySQL table with C#?

As you have been told, an SQL database have no color, front or back.
The question makes no sense.

You need to describe what you do and where you want to change the color.
  Permalink  
Comments
Member 13904037 11-Jul-18 19:34pm
   
I have a Project in C# with Datagrindview of a MySQL Database. I want to Change the backcolor if the Data in Table was updated
Member 13904037 11-Jul-18 19:37pm
   
the table shows numbers. If it chngend from one to two , the backcolor should also be changed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.181117.1 | Last Updated 11 Jul 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100