So when I add something in my datagridview the newline function doesnt work but it works in messagebox
Newline function tried: Environment.NewLine, vbCr, vbCrLf and vbLf
My Input: 7 : 30 AM 8 : 30 AM
and my code is:
sched1a = "7:30" schedformat1a = "AM" sched2a = "7:30" schedformat2a = "AM"
MsgBox(dgv.Rows(rcount).Cells(0).Value)
rcount = dgv.RowCount - 1
dgv.Rows.Add()
dgv.Rows(rcount).Cells(0).Value = sched1a.Text & schedformat1a.Text & Environment.NewLine & sched2a.Text & schedformat2a.Text
Even when adding the height and width. The newline function still doesnt work. Is there a possible way to do this? Thanks!