Whats the best way to take data from a datareader and manipulate that data, say taking a salary and dividing that salary by 12 then binding that data to a grid. I was thinking maybe a datareader to a dataset then looking through that to update the data, or is there a better way?
Need to do this at the application not the database so cant do the computation via the sql query.
If you are coming from SQL why not put the actual calculation inside the SQL?
If your business rules require you to keep logic out of the SQL then put it in the ItemDataBound event of a DataGrid (RowDataBound for GridView)…