|
-
July 12th, 2010, 03:42 AM
#1
[RESOLVED] Adding rows to datagridview programatically
Hi all,
Could someone tell me how to add rows to a datagridview programatically. This datagridview is already bounded to a table containing one row present in the SQL server (i.e the database), Now i want to add rows dynamically when it satisfies some condition..
Please help......
-
July 12th, 2010, 07:42 AM
#2
Re: Adding rows to datagridview programatically
how are you binding? If you are using a DataTable, then simply add additional rows to the DataTable.
===============================
My Blog
-
July 13th, 2010, 07:25 PM
#3
Re: Adding rows to datagridview programatically
You can get the datasource its bounded to, get its datatable, add new rows and refresh. Do you want an example? Let me know.
Regards,
CT.
Check out www.cuteassistant.com - Manage your tasks, take notes, securely store data and more!
-
July 14th, 2010, 04:06 AM
#4
Re: Adding rows to datagridview programatically
Hi,
I created a datarow, and added it to the respective dataset.......it works fine
-
July 14th, 2010, 05:54 PM
#5
Re: Adding rows to datagridview programatically
 Originally Posted by daffodils180
Hi,
I created a datarow, and added it to the respective dataset.......it works fine 
Great. Its easier as well. Can you please mark it as Resolved ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|