Click here to Skip to main content
15,921,174 members
Please Sign up or sign in to vote.
1.00/5 (1 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
Updated 11-Jul-18 14: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.

dataGridView.Rows[rowIndex].Cells[columnIndex].Style.BackColor = Color.Red;
/ravi
 
Share this answer
 
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?
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.
 
Share this answer
 
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.
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.
 
Share this answer
 
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900