N
no[one]
Guest
how to fill up the first column in the picture?
here is my code in the picture
Dim date2 As Date = d2
Dim date1 As Date = d1
Dim days As Long = DateDiff(DateInterval.Month, picker1.Value, picker2.Value.AddMinutes(1))
dgv1.Rows.Add(label_id.Text, Label5.Text, lbl_partial.Text, picker1.Value.ToString("MM/dd/yyyy"))
For i As Long = 1 To days
dgv1.Rows.Add(label_id.Text, Label5.Text, Label4.Text, picker1.Value.AddMonths(CInt(i)).ToString("MM/dd/yyyy"))
Next
what i want to do is to insert auto increment number of every row on a datagridview
Continue reading...
here is my code in the picture
Dim date2 As Date = d2
Dim date1 As Date = d1
Dim days As Long = DateDiff(DateInterval.Month, picker1.Value, picker2.Value.AddMinutes(1))
dgv1.Rows.Add(label_id.Text, Label5.Text, lbl_partial.Text, picker1.Value.ToString("MM/dd/yyyy"))
For i As Long = 1 To days
dgv1.Rows.Add(label_id.Text, Label5.Text, Label4.Text, picker1.Value.AddMonths(CInt(i)).ToString("MM/dd/yyyy"))
Next
what i want to do is to insert auto increment number of every row on a datagridview
Continue reading...