Click here to Skip to main content
Sign Up to vote bad
good
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:41
Edited 5 Dec '12 - 22:10

Comments
choudhary.sumit - 6 Dec '12 - 4:15
post your code here

1 solution

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 OriginalGriff 325
1 Sergey Alexandrovich Kryukov 140
2 Mohammed Hameed 123
3 Santhosh G_ 113
4 Ron Beyer 99
0 Sergey Alexandrovich Kryukov 8,286
1 OriginalGriff 6,561
2 CPallini 3,533
3 Rohan Leuva 2,703
4 Maciej Los 2,234


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