Let:
If that's the case, then CurrentCellChanged would appear to be the perfect
event. All you really need to do is walk through each column of a datarow,
see which one isn't null, and use that index to build your last field.
However, it seems an expression column is the way to go. Let me double
check what you are saying.
You can 6 columns, the first 5 of which refere to a day of the week
sequentially. If I upt something in the first column, then the datetime
field at the end shoudl turn to MOnday and the same for every other field.
I think nesting ISNull functions in the expression will get you there.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemDataDataColumnClassExpressionTopic.asp
Then, if you use an expression column, as soon as the value is changed, the
value in the calculated column will change automatically as well.
Am I understanding this right?
let said:
let me better explain what i am doing.
I query a table and return 6 columns the first 5 are all null and the 6th column is a date-time field.
column 1-5 represent a work week e.g M,T,W,T,F
the program schedules the first date we will start bulding a product (this is column 6)
the person who schedules will put a quantity in a column 1 through 5 which
will represent the first day schedule.
for example if he puts a 5 in the first column (Monday) then the date will
change to mondays date, if the first value is in column 2 (tuesday) then the
date value will be tusedays date, etc etc
So what i am looking for is something that will check if column one is
null and if it is go to column two and so on untill it finds the first
column that has a number in it then populate the correct date accordingly. I
need it to evaluate all 5 columns on any one of them changing though.