Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C#
private void dataGridView3_CellClick(object sender, DataGridViewCellEventArgs e)
       {

           invoice.dg1.Rows.Add(   DataGridView3.Item(0, e.RowIndex).Value,
                                   DataGridView3.Item(1, e.RowIndex).Value,
                                   DataGridView3.Item(2, e.RowIndex).Value,
                                   DataGridView3.Item(3, e.RowIndex).Value,
                                   DataGridView3.Item(4, e.RowIndex).Value
                                    );
       }
Posted
Updated 4-Aug-15 5:29am
v4
Comments
Sergey Alexandrovich Kryukov 4-Aug-15 11:03am    
There is no such thing as "C# gridview" or "VB.NET gridview". Do you have any questions?
—SA
[no name] 4-Aug-15 11:06am    
Yes, you have to change the VB syntax to C# syntax.
AMIT GAWDE 4-Aug-15 11:10am    
then what changes should i do in c#
[no name] 4-Aug-15 11:12am    
You rewrite the VB code to use C# syntax.
AMIT GAWDE 4-Aug-15 11:13am    
but it gives errors

1 solution

You'll have to change it to C#. There are online tools to translate that you can google for but if this is all the code you have, I suggest just retyping it in C#.
 
Share this answer
 

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