Solved

GRIDVIEW DISPLAY BLINKING COLUMN VALUES

Posted on 2013-01-08
5
365 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS ReportViewer report timeout 7 104
Exit the loop 4 37
Pagebreak issue while printing the aspx page 3 15
designing in object programming 12 42
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now