c# datagridview get selected row values

81

c# datagridview get selected row values -

int rowindex = dataGridView1.CurrentCell.RowIndex;
int columnindex = dataGridView1.CurrentCell.ColumnIndex; 

dataGridView1.Rows[rowindex].Cells[columnindex].Value.ToString();

Comments

Submit
0 Comments