Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Dynamic calculations in a GridView

Reply
Thread Tools

Dynamic calculations in a GridView

 
 
C
Guest
Posts: n/a
 
      10-03-2007
Hi,

I am posting this on the aspnet.webcontrols board as someone may have done
something similar.

I have a series of Database tables which hold various fields and details of
how they are calculated.

I take these details and bind them to a Gridview with a Description of each
item and a textbox so the user can input some integer value.

On the server side in my C# code I do some calculations dynamically.

I want to do these dynamically also on the client side in JavaScript. My
questions are as follows:
1 To do this I need to push out my database details of how the fields are
calculated on the client. I get back a collection of ojects in my c# code
where each object has an id and details of the calculation for each field.
How can I stored this on the form so I can get a handle on it in my
JavaScript?
2 I need to be able to get the id from my GridView so I can do my
calculations. I have this in my GridView but I don't want to display this on
the UI so I have set the BoundColumn to be not visible. As a result it does
not get rendered so I cannot get a handle on it.

Any advice on above would be greatly appreciated.

Thanks in Advance,
C.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Calculations in a GridView? =?Utf-8?B?Qw==?= ASP .Net 1 10-02-2007 05:01 PM
Dynamic GridView with Dynamic Column bsm ASP .Net Building Controls 1 05-15-2007 01:57 PM
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
Financial Calculations on ASP.NET forms Leszek ASP .Net 4 12-02-2003 04:52 PM
Importing an Excel file with calculations and VB Code into .Net Ed Bangle ASP .Net 0 11-23-2003 02:44 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57