How to Get the Value of a Selected Cell on DataGrid(Windows application) using

Posted by Syedshakeer under C# category on | Views : 7795
Double Click on your DataGride and write below code


private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
textBox1 .Text = dataGridView1.CurrentCell.Value.ToString();


Comments or Responses

Posted by: Cs1401 on: 7/16/2011 Level:Starter | Status: [Member] | Points: 10
really appreciated one. Thanks.

Login to post response