Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi
How can i do update row of datagridview in c# Without using the database؟

What I have tried:

pic1


pic2


How to edit the information
Posted
Updated 3-May-18 2:18am

There are two things here - the mechanic s of adding data to a DGV programatically is simple:
C#
myDataGridView.Rows.Add(myString, myInteger, myClassInstance, ...);
Just see here: DataGridViewRowCollection.Add Method (Object[]) (System.Windows.Forms)[^]
The other part of this is more complex - you are using a second form to supply the data, and that means you need to talk to your other form. Try this: Transferring information between two forms, Part 2: Child to Parent[^]
 
Share this answer
 
 
Share this answer
 
Thank you

How do I add an edit


file sampel add
https://ufile.io/3b3fp
I want to add the edit to the above example

You can help
 
Share this answer
 
Comments
Member 12882653 3-May-18 14:28pm    
No one help me?

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