| Author: kavitha 18 Jul 2008 | Member Level: Gold | Rating: Points: 1 |
http://www.codeproject.com/KB/database/grid101.aspx
|
| Author: vasanthiraajan 19 Jul 2008 | Member Level: Gold | Rating: Points: 3 |
hi
use this, put it in mouse click event of grid
TextBox1.Text = DataGridView1.Rows(e.RowIndex).Cells(0).Value
here, Cells(0) means - Ist Column of the Grid . . .
Cells(n)
|
| Author: Ashokkumar 19 Jul 2008 | Member Level: Gold | Rating: Points: 4 |
hi In a cellcontent clieck event try use this code
strRowIndex = dgvAlert.SelectedCells(0).RowIndex strRes = dgvAlert.Rows(strRowIndex).Cells(In datagrid coumln No).Value.ToString In strRowindex Gets clicked Row in strRes gets the Correct value
|