Hey there,
I have a multiline textbox with this appearence:
and i want to populate my datagridview to something like this:Code:A#B C# D#E
i mean, i want to split when there's a "#" , but i don't want multiline cells in datagridview.Code:A|BC|D|E
i tried this code:
but it says it goes outta bounds.. thanks!Code:Dim sup() As String = TextBox1.Text.Split(vbCr, vbLf, vbTab, " "c, "#") DataGridView1.Rows.Add(sup(0), sup(1), sup(2),sup(3)




Reply With Quote
