469,927 Members | 1,627 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

add values from datagridview to textbox

i want to get multiple values from datagridview to same textbox and i want to seperate those values from commas. and my datagridview in one form and the textbox in another form.
Nov 13 '09 #1
3 6418
Plater
7,872 Expert 4TB
What have you tried so far, this could be a fairly simple process.
Nov 13 '09 #2
i have created the datagridview in one form and textboxes in another form. and i wrote code for add one value from DGV to textbox. but my problem is i don't know how to get more than one value to the same textbox from the DGV column..
Nov 14 '09 #3
Plater
7,872 Expert 4TB
That should have been the easiest part?
Expand|Select|Wrap|Line Numbers
  1. string myval="";
  2. myval+=dataGridViewRow.Cells["SomeColumn"].Value.ToString();
  3. myval+=dataGridViewRow.Cells["SomeOtherColumn"].Value.ToString();
  4. //now send string over to textbox
  5.  
Nov 16 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by sg_pl | last post: by
reply views Thread by =?Utf-8?B?SmltIFdhbHNo?= | last post: by
9 posts views Thread by =?Utf-8?B?UGV0ZXJX?= | last post: by
9 posts views Thread by Miro | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.