Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
Hi friends,
I have two combobox and two textbox and one button. in button click event I want to add all the date in the combobox and textbox need to add in the datagridview.
I add this by creating datatable and add data to datatable and finally bind this datatable to datagridview. but It only add data in the first row. at every buttonclick event it just add data in the first row of the datagridview,because datable object reference newely created is bind to datagridview. but i want to add data to datagridview as a new row for every button click event. please give me sample available for this issue?
Thanks for advance
Posted 2-Nov-12 0:41am
Edited 5-Dec-12 22:10pm
v2
Comments
choudhary.sumit at 6-Dec-12 4:15am
   
post your code here

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 545
1 OriginalGriff 498
2 sanket saxena 330
3 Abhinav S 280
4 thatraja 275
0 Sergey Alexandrovich Kryukov 8,372
1 OriginalGriff 4,830
2 Peter Leow 3,784
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid