Solved

read a gridview with texbox

Posted on 2008-06-15
12
426 Views
Last Modified: 2011-10-19
I have a gidview (.net - vs2008 )with texbox, additionally the gridview have two rows:
The row "TOTAL variable" is modificable, if I modify any value of column "200806" then the row "TOTAL variable" change
gridviewTextbox.jpg
0
Comment
Question by:enrique_aeo
  • 5
  • 4
12 Comments
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
What is your question?  Do you want to know how to recalculate the sum?  How are these values calculated in the first place?
0
 

Author Comment

by:enrique_aeo
Comment Utility
sorry ,my question is: how to recalculate the sum? in the row "total variable"
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Then, how are these values calculated in the first place?
0
 

Author Comment

by:enrique_aeo
Comment Utility
the initial values are read from the database. Then be amended any value of textbox to the grilla and the amount is due to recalculate
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Can you repeat that process when a TextBox value changes?
0
 

Author Comment

by:enrique_aeo
Comment Utility
e.g: if the value of the row and column 01000042 200806 increase in 10, then the "total variable" corresponding to the column 200806 also were increased by 10, i.e. it recalculates
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
What are you looking for from me?
0
 

Accepted Solution

by:
enrique_aeo earned 0 total points
Comment Utility
this is the solution
 function SumarFila(nu_col)
    {
        var vtemp=0
            var qt_rows=document.all('gvListaMrp').rows.length;
            for (var j = 1; j < qt_rows-2; j++)
                  {
                var txt_ = document.all('gvListaMrp').rows(j).cells(nu_col).firstChild;
                      vtemp= parseFloat( txt_.value.toString()) + parseFloat(vtemp.toString());
                  }
          var txt_2 = document.all('gvListaMrp').rows(qt_rows-1).cells(nu_col).firstChild;
          txt_2.value=vtemp;
    }
0
 

Author Comment

by:enrique_aeo
Comment Utility
--
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

16 Experts available now in Live!

Get 1:1 Help Now