Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: REPOST Pin
Member 105130663-Jun-15 21:54
Member 105130663-Jun-15 21:54 
SuggestionRe: Implementing PocketSphinx in C# Pin
Richard MacCutchan3-Jun-15 21:35
mveRichard MacCutchan3-Jun-15 21:35 
AnswerRe: Implementing PocketSphinx in C# Pin
Simon_Whale3-Jun-15 22:25
Simon_Whale3-Jun-15 22:25 
AnswerRe: Implementing PocketSphinx in C# Pin
Pete O'Hanlon3-Jun-15 22:31
mvePete O'Hanlon3-Jun-15 22:31 
QuestionFresher problem for getting job in asp.net? Pin
Andyweil223-Jun-15 16:58
Andyweil223-Jun-15 16:58 
AnswerRe: Fresher problem for getting job in asp.net? Pin
Richard MacCutchan3-Jun-15 21:40
mveRichard MacCutchan3-Jun-15 21:40 
AnswerRe: Fresher problem for getting job in asp.net? Pin
OriginalGriff3-Jun-15 22:30
mveOriginalGriff3-Jun-15 22:30 
QuestionHow to not display the a row based on a condition. Pin
Norris Chappell3-Jun-15 14:39
Norris Chappell3-Jun-15 14:39 
The first record is displaying, I only wanted to show rows with more 1.25 and less .075.

Doe John 176.0000 1.0000 165.0000 0.9400 04/01/2015

This first row is the culprit.

What is wrong with my code?

C#
protected void gvCATW_RowDataBound(object sender, GridViewRowEventArgs e)
       {
           for (int i = 0; i <= gvCATW.Rows.Count - 1; i++)
           {
               Label last = (Label)gvCATW.Rows[i].FindControl("lblActualFTE");
               if (Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "ActualFTE")) > 1.25M)

               {
                   e.Row.ForeColor = System.Drawing.Color.Red;
               }

               else if (Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "ActualFTE")) < .75M)
               {
                   e.Row.ForeColor = System.Drawing.Color.Orange;
               }
               else
                   //if (Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "ActualFTE")) > .74M && (Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "ActualFTE")) < 1.25M))
               {
                   e.Row.Visible = false;
               }

AnswerRe: How to not display the a row based on a condition. Pin
PIEBALDconsult3-Jun-15 14:47
mvePIEBALDconsult3-Jun-15 14:47 
GeneralRe: How to not display the a row based on a condition. Pin
Norris Chappell4-Jun-15 4:21
Norris Chappell4-Jun-15 4:21 
AnswerRe: How to not display the a row based on a condition. Pin
Mathi Mani3-Jun-15 15:54
Mathi Mani3-Jun-15 15:54 
GeneralRe: How to not display the a row based on a condition. Pin
Norris Chappell4-Jun-15 3:54
Norris Chappell4-Jun-15 3:54 
QuestionRe: How to not display the a row based on a condition. Pin
Agent__0073-Jun-15 18:41
professionalAgent__0073-Jun-15 18:41 
AnswerRe: How to not display the a row based on a condition. Pin
Agent__0077-Jun-15 18:46
professionalAgent__0077-Jun-15 18:46 
GeneralRe: How to not display the a row based on a condition. Pin
Norris Chappell8-Jun-15 5:47
Norris Chappell8-Jun-15 5:47 
GeneralRe: How to not display the a row based on a condition. Pin
Richard Deeming8-Jun-15 6:49
mveRichard Deeming8-Jun-15 6:49 
GeneralRe: How to not display the a row based on a condition. Pin
Norris Chappell8-Jun-15 8:34
Norris Chappell8-Jun-15 8:34 
QuestionClass Hierarchy Design Question Pin
Kevin Marois3-Jun-15 12:44
professionalKevin Marois3-Jun-15 12:44 
AnswerRe: Class Hierarchy Design Question Pin
Richard Deeming3-Jun-15 21:40
mveRichard Deeming3-Jun-15 21:40 
GeneralRe: Class Hierarchy Design Question Pin
Kevin Marois4-Jun-15 4:27
professionalKevin Marois4-Jun-15 4:27 
QuestionC# PDF Printing Pin
El Developer3-Jun-15 4:54
El Developer3-Jun-15 4:54 
AnswerRe: C# PDF Printing Pin
Pete O'Hanlon3-Jun-15 5:01
mvePete O'Hanlon3-Jun-15 5:01 
GeneralRe: C# PDF Printing Pin
El Developer3-Jun-15 5:10
El Developer3-Jun-15 5:10 
GeneralRe: C# PDF Printing Pin
Pete O'Hanlon3-Jun-15 5:14
mvePete O'Hanlon3-Jun-15 5:14 
GeneralRe: C# PDF Printing Pin
El Developer3-Jun-15 5:30
El Developer3-Jun-15 5:30 

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.