how can i get the value of a particular cell of the selected row.

dataGridView1.Rows(dataGridView1.SelectedCells(0).RowIndex).Cells(0).Value

You could also use the .SelectedRows property instead of .SelectedCells depending on how you have the row selection set up in the grid.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.