Solved

GRIDVIEW DISPLAY BLINKING COLUMN VALUES

Posted on 2013-01-08
5
367 Views
Last Modified: 2013-01-15
Please see following code.   The following code is used in conjunction with Jquery and is supposed to flash text in column [14] based upon a value for example here:   "Domestic Verification Flight Required" .    Column value [14] corresponds to DB column "Status1".   For  


if (e.Row.Cells[14].Text == "Alert Requires Verification Flight")
            {
                e.Row.Cells[14].ForeColor = Color.Red;
                Status1.Text = "<FONT class='jqueryBlink'>" + Status1.Text.ToString() + "</FONT>";

                Status1.Style.Add("text-decoration", "none");
                e.Row.BackColor = System.Drawing.Color.Yellow;
0
Comment
Question by:BOEING39
  • 2
  • 2
5 Comments
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 38756737
0
 
LVL 18

Expert Comment

by:Rajar Ahmed
ID: 38757524
hi again,
i suppose, this was the last thread which u r mentioning
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_27829198.html


What is missing on your current question  ?
0
 

Author Comment

by:BOEING39
ID: 38761497
Meeran, I see you posted back to a thread I engaged with some time back.   That function worked with the hyperlinked text value, ho would the code look referencing the data base column, cell, text value instead of the Hyperlink.  I would like to base the condition of column [14] of the gridview, DB col name "Status1" insteadof the Hyperlink.    Since the cell text is not in a control I am not sure how to do this.  This was where I am having issues


if (e.Row.Cells[14].Text == "Alert Requires Verification Flight")
            {
                HyperLink lnkMCO = (HyperLink)e.Row.Cells[0].Controls[0];
                lnkMCO.Text = "<FONT class='jqueryBlink'>" + lnkMCO.Text.ToString() + "</FONT>";
                //lnkMCO.ForeColor = Color.Red;
                lnkMCO.Style.Add("text-decoration", "none");
                e.Row.BackColor = System.Drawing.Color.Blue;

            }
0
 
LVL 18

Accepted Solution

by:
Rajar Ahmed earned 500 total points
ID: 38761777
//Just find the cell position on your aspx gridview design and try this
if (e.Row.Cells[14].Text == "Alert Requires Verification Flight")
            {          
e.Row.Cells[14].Text =  "<FONT class='jqueryBlink'>" + e.Row.Cells[14].Text + "</FONT>";

            }

Open in new window

0
 

Author Closing Comment

by:BOEING39
ID: 38780623
That worked.   Thank You
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question