Click here to Skip to main content
13,259,847 members (52,894 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 1:41am
Updated 5-Dec-12 23:10pm
choudhary.sumit 6-Dec-12 4:15am
post your code here

1 solution

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

Solution 1


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171114.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100