VB.NET Code for datagridview to textbox in one line -


how can code in vb.net. want show data in textbox area

datagridview data

   name    purchase   group                vince   26         g1                      jenny   28         g1                      david   31         g1                   

expected output code result in vb.net?

vince-26-g1, jenny-28-g1, david-31-g1 

something should work.

dim mystring string = "" each datar datagridviewrow in datagridview1.rows mystring = mystring + datar.cells(0).value.tostring + "-" + datar.cells(1).value.tostring + "-" + datar.cells(2).value.tostring + ",  "  next  textbox1.text = mystring 

untested, that's you're looking do


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -