How to Bind a record from datagridview to winforms controls?
How to bind a selected record value from datagridview to winforms controls using C#.net?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Soft CornerRank #1,221 · 1.5K reputationPosted Apr 13, 2011, 3:57 AM EDT
To which control you want to bind selected record of datagridview?
Soft CornerRank #1,221 · 1.5K reputationPosted Apr 13, 2011, 4:50 AM EDT
Use CellContentClick event of DataGridView , in this event you will get selected row
DataGridView.Rows[e.RowIndex].Cells[0].Value.ToString() // Here Cells[0] for 1st column