DataGrid单击事件 this.datagrid1.CurrentCellthis.datagrid1.CurrentRowIndex 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 给你代码,是绑定到textbox和combobox的//当单击DataGrid里的某条记录时,在相应的控间中显示出来 private void dataGrid1_CurrentCellChanged(object sender, System.EventArgs e) { int i=this.dataGrid1.CurrentRowIndex; this.textBox1.Text=this.dataGrid1[i,0].ToString(); this.comboBox1.Text=this.dataGrid1[i,1].ToString(); } 求帮忙解释下语句的意思... 问个:定时发短信的技术问题 RichTextBox中光标坐标定位的问题,高低手看过来,哈 关于Excel导入、上传的问题!!!急 !! 急问:如何用程序修改默认web站点属性? 大家帮我处理一个数据查询问题,谢谢 我在C#中调用API函数mciSendCommand时候遇见的问题。 webbrowser 如何执行ajax函数 data-type标记 dataGrid如何实现数据库的多表操作?(100分) 请问webbrowser控件使用中如何处理这个模式对话框? 字符串加密问题!有经验的朋友近来领分! 请问有可用的压缩.net托管代码生成的exe文件的软件吗?
//当单击DataGrid里的某条记录时,在相应的控间中显示出来
private void dataGrid1_CurrentCellChanged(object sender, System.EventArgs e)
{
int i=this.dataGrid1.CurrentRowIndex;
this.textBox1.Text=this.dataGrid1[i,0].ToString();
this.comboBox1.Text=this.dataGrid1[i,1].ToString();
}