16,016,760 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12466358 (Top 5 by date)
Member 12466358
19-Apr-16 6:36am
View
Table is like that
name class1 class2 class3
ram 0 1 1
sita 1 1 0
i want to show data in below formate
name class1 class2 class3
ram bg red(0) bg green(1) bg green(1)
sita bg green(1) bg green(1) bg red(0)
Please advise me
data type of class is nubers
Member 12466358
19-Apr-16 6:35am
View
Deleted
Table is like that
name class1 class2 class3
ram 0 1 1
sita 1 1 0
but i want to show data in below form
name class1 class2 class3
ram bg red(0) bg green(1) bg green(1)
sita bg green(1) bg green(1) bg red(0)
Please advise me
data type of class is nubers
Member 12466358
19-Apr-16 6:34am
View
Deleted
Table is like that
name class1 class2 class3
ram 0 1 1
sita 1 1 0
name class1 class2 class3
ram bg red(0) bg green(1) bg green(1)
sita bg green(1) bg green(1) bg red(0)
Please advise me
data type of class is nubers
Member 12466358
19-Apr-16 5:16am
View
Hello Sir,
i am fetching data from database.
I have tried upto here-
private void button1_Click(object sender, EventArgs e)
{
try
{
con.Open();
OleDbCommand cmd = new OleDbCommand();
cmd.Connection = con;
cmd.CommandText = "select * from School";
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
dataGridView1.DataSource = dt;
}
catch (Exception ex)
{
MessageBox.Show("Error " + ex);
}
con.Close();
}
Please advise me how can i show then cells color is red (if value is 0) or green(if value is 1).
Member 12466358
18-Apr-16 4:32am
View
"your value" it means which value i will put here?