Solved

read a gridview with texbox

Posted on 2008-06-15
12
444 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
12 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 21799124
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
ID: 21799590
sorry ,my question is: how to recalculate the sum? in the row "total variable"
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 21801972
Then, how are these values calculated in the first place?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:enrique_aeo
ID: 21804852
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
 
LVL 96

Expert Comment

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

Author Comment

by:enrique_aeo
ID: 21806661
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
ID: 21812002
What are you looking for from me?
0
 

Accepted Solution

by:
enrique_aeo earned 0 total points
ID: 21824834
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
ID: 21857508
--
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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