YMCORP
December 12th, 2008, 10:40 AM
Hello,
I am using VB2008
To keep it plain and simple i have a datagrid in my application that has an unknown amount of rows and set amount of columns (4 of them). This datagrid i have created is for a simple inventory manager to ensure my stock is up to date. I have everything working just they way i want accept i want to be able to change the color of a number from black to red if it goes below a set number.
My columns are Part Number, Part, Min Qty, Quantity. Each part has a different set minimum quantity so i need something that will compare Min Qty and Quantity column. As an example: Row 6 has a minimum quantity of 50 entered into the Min Qty cell for that row and the Quantity cell has 75, So that means i have more then my minimum quantity. So the numbers in my Quantity column should stay black. Now lets say in row 5 the Min quantity is set to 30 and The quantity column has a number of 25 in it. I want that number to show up as red, meaning that we have fallen below a minimum quantity. I hope i have given enough information and if i havent please let me know. I have done some searching around the www but i havent found anything that i am looking for. Thank you in advance for any help.
I am using VB2008
To keep it plain and simple i have a datagrid in my application that has an unknown amount of rows and set amount of columns (4 of them). This datagrid i have created is for a simple inventory manager to ensure my stock is up to date. I have everything working just they way i want accept i want to be able to change the color of a number from black to red if it goes below a set number.
My columns are Part Number, Part, Min Qty, Quantity. Each part has a different set minimum quantity so i need something that will compare Min Qty and Quantity column. As an example: Row 6 has a minimum quantity of 50 entered into the Min Qty cell for that row and the Quantity cell has 75, So that means i have more then my minimum quantity. So the numbers in my Quantity column should stay black. Now lets say in row 5 the Min quantity is set to 30 and The quantity column has a number of 25 in it. I want that number to show up as red, meaning that we have fallen below a minimum quantity. I hope i have given enough information and if i havent please let me know. I have done some searching around the www but i havent found anything that i am looking for. Thank you in advance for any help.