I have a string grid on my main form that allows users to see jury trials that are currently going on. Unfortunately sometimes the clerks who are suppose to end the trials don't do it (imagine that!!). So what I'd like to do is check to see how long ago the trial started and if it's more than a specific amount of time, then color that row yellow or red depending on how long ago the trial started.
So I have:
Trial Watcher (* indicates continued)
Case Number Judge Started PanelID Jury
DV240303 1 8/22/03 030818P06 Y
DV275803 3 9/08/03 030902P06 Y
DW125503* 8 9/08/03 030902P02 N
Since the first case is more than 1 days old and has not been continued, I would like this row to be red.
The second case is equal to 1 day old and has not been continued, so it should be yellow. The third case is also equal to 1 day old, but has been continued so it should be the default color as well as any trials that start today.
Any idea on how I can control this type of coloring scheme?
Thanks,
Leslie
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!
So I have:
Trial Watcher (* indicates continued)
Case Number Judge Started PanelID Jury
DV240303 1 8/22/03 030818P06 Y
DV275803 3 9/08/03 030902P06 Y
DW125503* 8 9/08/03 030902P02 N
Since the first case is more than 1 days old and has not been continued, I would like this row to be red.
The second case is equal to 1 day old and has not been continued, so it should be yellow. The third case is also equal to 1 day old, but has been continued so it should be the default color as well as any trials that start today.
Any idea on how I can control this type of coloring scheme?
Thanks,
Leslie
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!