Home  /  Questions  /  Question

Jan 23, 2016

How to check largest numbers in datagridview and assign grades to it

I want to assign grades to numbers in datagridview like this. 
Column1.    |   Column 2
200.             |   Grade A
390.             |.  Grade B
321.             |.   Grade C
228.             |.    Grade D
235.             |.    Grade E

This is how I want my program to look like but I've already generated column1 from. But I don't know how to check the largest number and attach the grades to it respectively. 
I don't know how to go about it so I have no codes so far

0   0
Jan 28, 2016
Col you please explain us what does column 1 data implies and the code you tried to assign the grade to it.

508   99.9
Jan 25, 2016
It is not possible to provide and answer because you have not specified how Grades are assigned. Are they sequential (only one B, C) or do you have ranges? Are the ranges dynamic or fixed width?  Etc. 

If you give us some more details you may get an answer.