Click here to Skip to main content
15,560,542 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

How can I calculate values using certain conditions like
The first column, the first row, contains the Audi type vehicle The second column, the first row, contains a valid vehicle status

Label 1 = 1

The first column, the second row, contains the Audi type vehicle The second column The second row contains the damaged vehicle position

Label 2 = 1


What I have tried:

In short, calculating the status of vehicles?
Posted
Updated 7-Aug-22 3:20am
v2
Comments
Graeme_Grant 6-Aug-22 19:49pm    
What have you tried?
Ashen_Boy 7-Aug-22 8:09am    
i dont triy any code
becose i dont know any code for this
Richard MacCutchan 7-Aug-22 2:57am    
What exactly are you trying to calculate? The only information you seem to be storing is status values.
Ashen_Boy 7-Aug-22 8:22am    
https://ibb.co/GFr1HLJ

i want to count like this

photo in the link above
Richard MacCutchan 7-Aug-22 8:28am    
Yes, we know that you want to count something. From what I can see in your posted image you have a number of rows of data in a datagridview. So where is the source of that data? If it is in a database then some SQL should be able to do it for you. If it is coming from somewhere else then you need to explain in more detail.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900