Newbie here!
How can I do this?

Step1

TextBox1.Text = sender.text & ","

Step2

TextBox1.Text = TextBox1.Text & sender.text

Step3

        Dim qty As String = TextBox1.Text.Substring(0, TextBox1.Text.ToString.LastIndexOf(","))
        Dim itemName As String = TextBox1.Text.Replace(qty & ",", "")
        DataGrid.Rows.Add(itemName, "", "", qty)

Step4

Label.Text = DataGrid.Rows(index).Cells(index).Value

Thanks for your response!
Sorry Sir, but I have no Idea on where/what event I should put the codes...
Can you please elaborate it more?
Thanks a lot!

put the code of step1 in all qty button click and you can put the codes of step2, step3 and step4 in all item button click

Oh thank you so much!
^___^=

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.