Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Click DataGrideiew and Fill Textbox in .NET
WhatsApp
Pintoo Yadav
Jun 05
2015
1.2
k
0
1
private
void
dataGridView1_CellContentClick(
object
sender, DataGridViewCellEventArgs e)
{
int
i;
i = dataGridView1.SelectedCells[0].RowIndex;
//[CO_CODE],[CO_NAME],[Add1],[Add2],[Add3]
label2.Text = dataGridView1.Rows[i].Cells[0].Value.ToString();
lblbill.Text = dataGridView1.Rows[i].Cells[1].Value.ToString();
textBox1.Text = dataGridView1.Rows[i].Cells[2].Value.ToString();
richTextBox1.Text = dataGridView1.Rows[i].Cells[3].Value.ToString();
// textBox4.Text = dataGridView1.Rows[i].Cells[4].Value.ToString();
}
Datagrideview
.NET
Up Next
Click DataGrideiew and Fill Textbox in .NET