一个winform窗体里面有两个窗体Form1和Form2,在Form1中有一个dataGridView控件,通过contextMenuStrip将控件里面的数据传递到Form2中的textBox中,数据库是oracle
解决方案 »
- 如何在自己的程序中运行C#语句?
- DevExpress.XtraGrid.Views.Grid.GridView设置行
- C#水晶报表如何直接打印?
- ReportViewer如何显示Access数据库(学生信息表STU)的所有信息?
- main()方法的问题 散分啦
- 400分求购!哪位哥们有一个比较典型的C#(WINFORM)MIS信息系统原代码吗?
- 哪里可以下载开发手持设备所用的SDE下载,要FOR Visual Studio .NET的,急!
- 怎样做成在浏览器打开Excel啊
- 讨论Csharp写的Sqlserver论坛承受度
- 请教!?
- 点击按钮开始轮询,再点击关闭轮询,怎么用多线程实现?
- 文件夹上传
private void 编辑选中ToolStripMenuItem_Click(object sender, EventArgs e)
{
int colIndex = this.ViewAccess.CurrentCell.ColumnIndex;
string colunmnName = this.ViewAccess.Columns[this.ViewAccess.CurrentCell.ColumnIndex].Name;
List<int> rowIndex = new List<int>();
for (int i = ViewAccess.SelectedCells.Count - 1; i >= 0; i--)
{
int c = ViewAccess.SelectedCells[i].RowIndex;
TextBox1.Text = ViewAccess.Rows[c].Cells[colunmnName ].ToString();
}
}
dataGridView.SelectedRows[0].Cells["Name"].Value.ToString()