|
-
Nov 15th, 2007, 05:30 AM
#1
Thread Starter
Frenzied Member
Datagrid, calculating 2 columns and putting the result a 3rd column
Hello,
2005 VS WM 6.0
I have a datagrid with columns Quantity Price, and Total.
The validating event of the datagrid will fire when the a new quantity is entered into the quantity cell, then the calculation will happen in that event.
Is the validating event the best event to use when making a calculation like this?
The datagrid is bound to a typed dataset.
When doing the calculation is it best to get the current row and then calculate the 2 columns? Or is this better with using the Table.Compute method?
Many thanks for any code examples or advice,
Steve
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|