For Each row As DataGridviewRow In DataGridview1.Rows Dim expdate_v As Date - row.Cells ("exp_date") .Value Dim calcdays_v As Integer - DateDiff(DateInterval.Day, Date.Now, expdate_v) Next row.cells("rdays"). Value - calcdays_v
DataGridView
is a Windows Forms control so that is even more appropriate. Thread moved. conn.Method1()
...
da.SqlCommand4 = cmd
...
dt.Method37()
da.Method5(dt)
DataGridView1.DataTable2 = dt
conn.Method7()
DataGridView1.Boolean16 = True
...
column4.String12 = "rdays"
column4.String82 = "Remaining Days"
column4.Integer17 = 200
DataGridView.DataGridViewColumnCollection3.Method19(3, column4)
-
) when they should be assignment operators (=
). Why do you only have a bad picture instead of actual code? Why is it that you can translate some code but not some other that is no more complicated? How is it that you can't recognise a variable assignment if you know anything about programming? Why is it that, despite being asked, you still haven't explained what the actual problem is? You just keep saying "here's some code, convert it for me because I can't". That's not an explanation of a problem. When someone goes to this much trouble to not explain a problem, it smells fishy. You can clear that up quite easily.