Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to add rows to bounded datagrid programatically in c# windows application. I am using Linq and Visual Studio 2010. Please help me to do it. Thanks in advance.
Posted

1 solution

Hi,

You can't add row directly by adding method datagrid1.rows.add().
You have to add object in your data source list or object array.
Set first data source null to the datagridview and reset data source with the same list in which you added objects.
 
Share this answer
 

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