Click here to Skip to main content
15,925,181 members
Home / Discussions / C#
   

C#

 
GeneralRe: Declaration in C# Pin
deviduttayahoo28-Oct-07 22:02
deviduttayahoo28-Oct-07 22:02 
GeneralRe: Declaration in C# Pin
Urs Enzler28-Oct-07 22:55
Urs Enzler28-Oct-07 22:55 
GeneralRe: Declaration in C# Pin
Luc Pattyn29-Oct-07 1:58
sitebuilderLuc Pattyn29-Oct-07 1:58 
AnswerRe: Declaration in C# Pin
Scott Dorman28-Oct-07 5:25
professionalScott Dorman28-Oct-07 5:25 
GeneralRe: Declaration in C# Pin
deviduttayahoo28-Oct-07 22:03
deviduttayahoo28-Oct-07 22:03 
AnswerRe: Declaration in C# Pin
Steve Echols28-Oct-07 5:26
Steve Echols28-Oct-07 5:26 
QuestionNew to C# - Socket, Read/Write problem. Pin
unknown_Sheep28-Oct-07 4:25
unknown_Sheep28-Oct-07 4:25 
Questionmulticolor DataGridView Pin
Assaf8228-Oct-07 3:19
Assaf8228-Oct-07 3:19 
Hello
I want to color my dataset row by row according to specialvariable in it
this my code:
1 private void Color()
2 {
3 for (int i = 0; i < this.dtgCreditInfo.Rows.Count; i++)
4 {
5 if (int.Parse(this.dtgCreditInfo.Rows[i].Cells["Status"].Value.ToString()) <= -1)
6 this.dtgCreditInfo.RowsDefaultCellStyle.BackColor = System.Drawing.Color.Red;
7 if (this.dtgCreditInfo.Rows[i].Cells["Status"].Value.ToString() == "1")
8 this.dtgCreditInfo.Rows[i].
9 //this.dtgCreditInfo.RowsDefaultCellStyle.BackColor = System.Drawing.Color.Aqua;
10 if (this.dtgCreditInfo.Rows[i].Cells["Status"].Value.ToString() == "0")
11 this.dtgCreditInfo.RowsDefaultCellStyle.BackColor = System.Drawing.Color.White;
12 }
13 }

The sixth line of code let whole the grid in the same color and also do the 11 line
so how can i solve this.

any help would be greatly appreciate


-- modified at 9:34 Sunday 28th October, 2007

Assaf

AnswerRe: multicolor DataGridView Pin
Giorgi Dalakishvili28-Oct-07 3:50
mentorGiorgi Dalakishvili28-Oct-07 3:50 
GeneralRe: multicolor DataGridView Pin
Assaf8228-Oct-07 4:09
Assaf8228-Oct-07 4:09 
GeneralRe: multicolor DataGridView Pin
Giorgi Dalakishvili28-Oct-07 4:16
mentorGiorgi Dalakishvili28-Oct-07 4:16 
QuestionNamespace and Dataset! Pin
khalidelmeknesi28-Oct-07 3:10
khalidelmeknesi28-Oct-07 3:10 
AnswerRe: Namespace and Dataset! Pin
Paul Conrad28-Oct-07 6:35
professionalPaul Conrad28-Oct-07 6:35 
GeneralRe: Namespace and Dataset! Pin
khalidelmeknesi28-Oct-07 16:26
khalidelmeknesi28-Oct-07 16:26 
GeneralRe: Namespace and Dataset! Pin
Paul Conrad28-Oct-07 16:53
professionalPaul Conrad28-Oct-07 16:53 
QuestionLicensing in .NET Pin
danielk_28-Oct-07 2:33
danielk_28-Oct-07 2:33 
AnswerRe: Licensing in .NET Pin
Scott Dorman28-Oct-07 3:24
professionalScott Dorman28-Oct-07 3:24 
GeneralRe: Licensing in .NET Pin
jmcc2k24-Nov-10 17:37
jmcc2k24-Nov-10 17:37 
QuestionGraph Pin
babbelfisken28-Oct-07 2:05
babbelfisken28-Oct-07 2:05 
AnswerRe: Graph Pin
Robert Rohde28-Oct-07 2:10
Robert Rohde28-Oct-07 2:10 
QuestionArray as a buffer in multithreading Pin
szolDat28-Oct-07 1:37
szolDat28-Oct-07 1:37 
AnswerRe: Array as a buffer in multithreading Pin
Robert Rohde28-Oct-07 2:21
Robert Rohde28-Oct-07 2:21 
AnswerRe: Array as a buffer in multithreading Pin
Guffa28-Oct-07 3:37
Guffa28-Oct-07 3:37 
GeneralRe: Array as a buffer in multithreading Pin
szolDat28-Oct-07 7:53
szolDat28-Oct-07 7:53 
AnswerRe: Array as a buffer in multithreading Pin
Guffa28-Oct-07 10:09
Guffa28-Oct-07 10:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.