Vani Alcaraz Dinglasan
Member
i got a datagrid connected to sql...
my problem is i have two columns which is grade and evaluation
i need to do is..
if grade has a value of 1-3 print passed
and 4 above will print failed
--------------------a string will be printed in evaluation column
here is my sample code of mine.. which didnt work..
dim grade as datacolumn
dim evaluation as datacolumn
For i As Integer = 0 To Me.DataGridView.RowCount - 1
if DataGridView.item(Grade,i)="" then
DataGridView.item(evaluation,i)="Unknown"
else
if DataGridView.item(Grade,i)>4 then
DataGridView.item(evaluation,i)="Failed"
else
DataGridView.item(evaluation,i)="Passed"
End if
Enf if
Next
my problem is i have two columns which is grade and evaluation
i need to do is..
if grade has a value of 1-3 print passed
and 4 above will print failed
--------------------a string will be printed in evaluation column
here is my sample code of mine.. which didnt work..
dim grade as datacolumn
dim evaluation as datacolumn
For i As Integer = 0 To Me.DataGridView.RowCount - 1
if DataGridView.item(Grade,i)="" then
DataGridView.item(evaluation,i)="Unknown"
else
if DataGridView.item(Grade,i)>4 then
DataGridView.item(evaluation,i)="Failed"
else
DataGridView.item(evaluation,i)="Passed"
End if
Enf if
Next