Gridview Previous value in RowDataBound

R

rlm

I have a gridview, and in the RowDataBound event I do some processing on the
data. I need to know if the one of the columns has changed from its previous
value, but I do not see how to get the previous value. Doesn't viewstate have
that already?

I know I can access the current value with e.Row.Cells[0].Text, and I know I
can access a value in ViewState which I have added like ViewState["Status"].
What I want is something like this.
if(e.Row.Cells[0].OldValue.Text != e.Row.Cells[0].Text){
DoSomething();
}
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top