ItemDataBound question?

G

Guest

Hi,

I have this kind of scenario:

col1 col2 col3
row1 1 2 3
row2 4 5 6
row3 7 6 9

In certain instances the value in cell (row2, col3="6") equals the value in
cell (row3, col 2="6"). It's the same value , they are valuepairs. And thus I
want to color them with the same color to distinguis them from the other
values in the other cells.

I've been using the grid's ItemDataBound method earlier for coloring
different cells in the grid, but can this method act upon values in two
different rows?

Any ideas?

/Kenneth P
 
B

Brock Allen

You'll have to query your original data source to do that sort of cross row
logic. The reason you can't/shouldn't query the row in the grid is because
it's been converted into control objects at this point, and it's more difficult
to turn the control's text back into the original datatype that was from
your data source.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top