开发者

retrieve the value of datagridview inside the panel in splitcontainer

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜