kaylee

kaylee

  • NA
  • 1
  • 0

Change Cell Color in DataGridView NOT based on value

Sep 23 2008 6:02 PM

OK.

I have a simple app for sorting/displaying deliveries.  Process:

1) user opens a temporary text file and adds a new delivery (there are more deliveries from previous entries)

2)user opens the app, selects which deliveries he wants to see (trucks/other/hoppers)

3)user says load...the datagrid is then populated by the data in the tmp text file...the data is sorted into a calendar, with weeks as columns...then deliveries are just listed under the appropriate column (week to be delivered)  <there is no special designation for rows, other than count of deliveries)

4) then the user can print...yada, yada

 

I inherited this...not quite sure how I would make a change like so:

The users have to rearrange deliveries and change dates...basically messing with status.  if they move one delivery back, they might learn there is no more wiggle room (red), if they move a delivery to an earlier date (green), so on.  They want these colors to show up as the background in the datagridview for the cell which contains the altered delivery.

I know it is not best practice to let a user in the temp file, but that is the case here (I did inherit this).  How I am supposed to do this is by allowing the user to edit 4 temp files-- the original temp, the red, the green, the blue...they will put the delivery entry in the appropriate temp file.

I haven't figured out if the original temp needs to be a comprehensive list or not, because I am having trouble grasping HOW i am going to get that datagridview to change a cell's color based on WHERE data is coming from, not what it is...

ANY SUGGESTIONS WOULD BE GREATLY APPRECIATED (even if it is totally different than what I said)

IF THERE IS ANY CLARIFICATION NEEDED, PLEASE ASK!!

THANKS IN ADVANCE!!

-kpizzle