I have a split container control in c#. inside the right panel there is a datagridview. i have a button in panel outside the datagridview. when the button is clicked i want to get the datagridview's selected row value开发者_开发知识库. how to do it?
For example
dataGridView.SelectedRows[0].DataBoundItem
or
dataGridView.SelectedRows[0].Cells[x].Value
where x is the column index
or
sensorDataGridView.CurrentCell.Value
精彩评论