NET WinForms.
VB code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = "Beginning"
Dim a As Integer = 20
Dim b As Integer = 3
Do Until b > a
a & " " & b
a = a - 2
b = b + 1
Loop
Label2.Text = "End"
End Sub
I want to display the result of this row a & ” ” & b in GridView.
How should I change the code to make this work properly?
I would recommend you store the value into DataTable and bind into the DataGridView