Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i have created datagridview with 2 coloumn namely set1 and set2.
in which for adding values to coloumn1 i use datagridview1.rows.add(value1).
like this how i can add values to coloumn2 of same datagridview.
Thanks in advance

What I have tried:

hi,
 i have created datagridview with 2 coloumn namely set1 and set2.
in which for adding values to coloumn1 i use datagridview1.rows.add(value1).
like this how i can add values to coloumn2 of  same datagridview.
Thanks in advance
Posted
Updated 27-Jun-18 2:01am
Comments
Ralf Meier 4-May-17 3:12am    
Sorry ... I don't understand what you are trying to achieve. You should explain it much better AND perhaps also provide some code ...
Member 12659926 4-May-17 4:20am    
hi,
i have one datagridview object(datagidview1) on my form.that has two coloumns named Set1 and Set2 in it.i need to add values to both the columns of datagridview.
but i am unable to add values to second column of datagridview.
i use datagridview1.rows.add(value1) code to fill first column,but how to second column of same datagridview.
Ralf Meier 4-May-17 6:21am    
see my Solution ...

i didnt get a proper explanation
 
Share this answer
 
Comments
Richard MacCutchan 27-Jun-18 9:02am    
This is not a solution. If you have a problem then please open a new question. But you will need to provide a proper detailed explanation of what it is you are having difficulty with.
This could be done by :
VB
DataGridView1.Rows.Add(value1.tostring,value2.tostring)
 
Share this answer
 
Comments
Member 12659926 4-May-17 6:35am    
Thanks
Ralf Meier 4-May-17 6:40am    
you are welcome ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900