Click here to Skip to main content
14,699,126 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
adding record in data grid temporary when more than one record are added than finally get this record and update in databsae[^]
Updated 15-Feb-15 5:35am
Suvendu Shekhar Giri 15-Feb-15 7:42am
What have you tried so far? It's a community site so if you are in middle of something, share the code so that someone can help you to reach the end.
Muhammad Arsalan csharp 15-Feb-15 8:13am
Muhammad Arsalan csharp 15-Feb-15 8:14am
this link is similar to that
Muhammad Arsalan csharp 15-Feb-15 8:35am
i updated ..
Richard MacCutchan 15-Feb-15 8:43am
Sorry, it is still not clear what your problem is. Adding records to a datagrid is a fairly simple process and there are many samples that you can find in the MSDN documentation, CodeProject articles, and via Google.
Muhammad Arsalan csharp 15-Feb-15 9:09am
yes you get it but when onclick i have 2 text boxes and combo boxes when user click add button the record added in data grid
i need sample code plz help
Richard MacCutchan 15-Feb-15 9:15am
Sorry but I still do not understand what your problem is. I suggest you do some Google searching for sample code and then you can decide which sample addresses your problem.
Muhammad Arsalan csharp 15-Feb-15 10:30am
i update an image you can understand and i also search google
Muhammad Arsalan csharp 15-Feb-15 10:54am
Muhammad Arsalan csharp 15-Feb-15 7:54am
similar to this link but i want generalize method to add record in grid

1 solution

Dropdown in Datagrid - ComboBox in DataGrid in WPF[^].

To make the grid editable, try DataGrid Tips & Tricks: Single-Click Editing[^].

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