ousoonerjoe
Programmer
Using VB.Net 2010.
Using a DataGridView to display/edit scheduling information, the user specifies color values that are stored in a separate table. The table contains the Column Name (variable columns, ID's won't work here), JobNum (a unique value that identifies the row), and ColorID. Where the issue comes in, the grid could have 500+ rows with anywhere from 5 to 25 columns per row. As Jobs complete, they fall off the grid and remaining rows shift up making the use of storing the Row Index obsolete. When loading and setting the specified cell backgrounds, it can get rather time consuming to process before returning control back to the user.
Obviously, looping through the grid is an option, but was hoping there was a more efficient way. A quick ability to Find Row in a column with given value I think would be best, but am open to any other methods or ideas. Efficiency is primary here as the cell background colors are being set when the grid is populated.
Any assistance is appreciated. Thank you.
--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------
Using a DataGridView to display/edit scheduling information, the user specifies color values that are stored in a separate table. The table contains the Column Name (variable columns, ID's won't work here), JobNum (a unique value that identifies the row), and ColorID. Where the issue comes in, the grid could have 500+ rows with anywhere from 5 to 25 columns per row. As Jobs complete, they fall off the grid and remaining rows shift up making the use of storing the Row Index obsolete. When loading and setting the specified cell backgrounds, it can get rather time consuming to process before returning control back to the user.
Obviously, looping through the grid is an option, but was hoping there was a more efficient way. A quick ability to Find Row in a column with given value I think would be best, but am open to any other methods or ideas. Efficiency is primary here as the cell background colors are being set when the grid is populated.
Any assistance is appreciated. Thank you.
--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------