Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#WinForm
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 25-Aug-12 1:13am
Wes Aday at 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.
kumar.svk at 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 at 25-Aug-12 7:29am
Post your complete code in your question. use Improve question to update content of your question.
ridoy at 25-Aug-12 7:43am
all newcomers expect code form codeproject now-a-days!
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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

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

  Print Answers RSS
Your Filters
0 Shai Vashdi 1,448
1 Tadit Dash 270
2 OriginalGriff 223
3 Sergey Alexandrovich Kryukov 215
4 Peter Leow 180
0 Sergey Alexandrovich Kryukov 9,440
1 OriginalGriff 5,618
2 Peter Leow 4,280
3 Maciej Los 3,540
4 Abhinav S 3,363

Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 25 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid