Click here to Skip to main content
16,017,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i have grid in which i will enter some values to each column and i need to take a temp table for the manuplation how to assign those grid values to temp table.
Posted

You iterate over the table and copy the values across. I don't see how else it could work.
 
Share this answer
 
Why would you need to do that, unless you are passing the grid content to a already defined method? If that is the case, then you need to look at what the method requires, rather than just trying to convert data blindly.
What do you need to do with the data?
 
Share this answer
 
Hi,
see i have two colum va amount(amt) and gross weight(gwt) in the grid. i have a total discount gwt of 5. i need to take a min amt of va amt in that grid and i have to take the gwt of that row reduce it from the dicount gross wt for eg

Gwt Va per gram
3 450 2046
4 380 2046
3 400 2046

total discount gram = 5


discount amount = should check for low VA and calculate for discount wt.)
gross wt of minmum row1 *(per gram row1 + va amt) + gross wt of minmum row2 *(per gramrow2 + va amtrow2)

= 4 * (2046+380) + 1 * (2046+400) = 12150.00</pre>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900