k p
Posts: 2
Nickname: kpizzle
Registered: Sep, 2008
|
|
Re: Change Cell Color in DataGridView NOT based on value
|
Posted: Sep 25, 2008 8:46 AM
|
|
Update:
I've decided that my original plan was bunk, and I was somewhat inaccurate in describing my situation...here's another go:
I have 3 .csv files, one for trucks, huggers, and hoppers -- which contain a sales order (unique value), model, quantity. These are generated lists, from the database. These are the files used to populate the datagrid in my program.
Now, sometimes changes are made to the delivery dates...the users wants 3 important changes to be highlighted by changing the background color of the cell which that delivery occupies. Red meaning the delivery date was pushed back, Yellow meaning the delivery date was pushed forward by the customer, Green meaning the delivery date was pushed forward by us (had time to do it early). Now, the user will have 3 .txt files, red.txt yellow.txt and green.txt (I need to keep the users out of the .csv files). They'll put the sales order in the appropriate .txt file (one per line). My program will parse those values in for each .txt file after the datagrid has been loaded, search the grid for a cell containing that sales order, then change the background if it is found...else, leave it alone. This sounds like it would work, right?
|
|