请教高手,如何选中datagrid中的行?
我是用winfrom做的,从数据库中查询后导入到datagrid中,有多行数据,现在我想让用户双击datagrid中的某一行就能打开新的窗体显示里面的数据,或者是点一下选中,然后用按钮打开新的窗体,显示该行的数据,请高手帮忙指点指点,谢谢了...
[解决办法]
我的一部分程序 datagrid.DoubleClick
Dim currentRowView As DataRowView = CType(Me.BindingContext(datatable).Current, DataRowView)
Dim Dcn As String = currentRowView( "列名 ")
Dim newWindow As New SingelAgreementDetails(Dcn)
newWindow .ShowDialog()