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
Post a Comment