Welcome Guest Search | Active Topics | Sign In | Register

Updating grid cells Options
GaryBrowning
Posted: Tuesday, January 24, 2012 11:15:14 AM
Rank: Member
Groups: Member

Joined: 6/1/2011
Posts: 18
I have a grid control that some of the columns display data from a SQL query/view. Some of the other columns are calculated values, so I need to use the existing values in certain cells, perform a calculation, then display the result in another cell on the same row.

For example, I have 6 columns with data in column 4 & 6. I need to divide the value in column 4 by value in column 6, then display it in column 5.

After the grid has been filled with data, how do I step through each row, perform the calculation, then display the result in another cell?
eo_support
Posted: Tuesday, January 24, 2012 12:54:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can either do the calculation on your data source, or just modify the corresponding GridCell's Value property through code.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.