Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a datagrid with values from database in Form1. If a pass a value from form2 then the values should add at the end of the datagrid rows. kindly help with sample code.....
Posted
Comments
[no name] 25-Aug-12 7:15am    
"kindly help with sample code"... no that is not how things work here. Try something for yourself then come back and ask a specific question if you get stuck.
mails4vijayakumar 25-Aug-12 7:24am    
I have tried following code

dgvIssueDtl.AllowUserToAddRows = true;
dgvIssueDtl.Rows.Add();

but the rows are adding in the middle of my datagrid. i want it at end of the row....
AmitGajjar 25-Aug-12 7:29am    
Post your complete code in your question. use Improve question to update content of your question.
ridoy 25-Aug-12 7:43am    
all newcomers expect code form codeproject now-a-days!

Have a look at: A Detailed Data Binding Tutorial[^]

I think you need to refactor your code - separating data and ui.

Have a look at what I do here:Depends4Net - Part 2[^] - this makes working with your data quite easy.

Best regards
Espen Harlinn
 
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