Answer the question
In order to leave comments, you need to log in
Background for records in DataGrigView?
I placed the DataGrigView component on the form, connected the database via SQL, I need to create a background for each record, respectively, from the number (in my case, from the number of medicines). Like, if there are more than 10 drugs, then the background is displayed in green, if there are less than 6 drugs, then it is displayed in yellow, if there are less than 3 drugs, then draw in red. How to do it?
ps: who can throw part of the code, thanks
Answer the question
In order to leave comments, you need to log in
It is better to use ItemsControl, make the fields that need to be changed as a TextBox, and then hang Triggers on the necessary TextBox with "preparation" .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question