[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 465
  • Last Modified:

read a gridview with texbox

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
enrique_aeo
Asked:
enrique_aeo
  • 5
  • 4
1 Solution
 
Bob LearnedCommented:
What is your question?  Do you want to know how to recalculate the sum?  How are these values calculated in the first place?
0
 
enrique_aeoAuthor Commented:
sorry ,my question is: how to recalculate the sum? in the row "total variable"
0
 
Bob LearnedCommented:
Then, how are these values calculated in the first place?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
enrique_aeoAuthor Commented:
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
 
Bob LearnedCommented:
Can you repeat that process when a TextBox value changes?
0
 
enrique_aeoAuthor Commented:
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
 
Bob LearnedCommented:
What are you looking for from me?
0
 
enrique_aeoAuthor Commented:
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
 
enrique_aeoAuthor Commented:
--
0

Featured Post

Independent Software Vendors: 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!

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now