how to put condition for binding in asp on editmode in a cell from a gridview

May 30 2008 5:03 AM
Hello,
How can I put conditions on a cell from a gridview in edit mode?
For example I have the dataview called grdSeasons with the columns From, Until, MinStay, MaxStay, Release

in edit mode From, Until, MinStay keep the value data that was saved before
when add a new row From, Until, MinStay should be empty

in edit mode MaxStay and Release keep the values that was saved before
when add a new row should apear the DEFAULT VALUES 3 for Release and 99 for MaxStay

Can someone help with this?
thank you