功能:
在Form1窗体中,鼠标单击DataGridView的某一行,弹出Form2窗体,显示该行的所有内容。
实施:
Form1窗体中添加DataGridView控件,设置DataGridView控件的【SelectionMode】属性值为“FullRowSelect”,【Dock】属性值为“Fill”。

Form2窗体中添加Label控件和TextBox控件,设置TextBox的【Modifiers】属性值为“Public”

代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sy
订阅专栏 解锁全文
5006



被折叠的 条评论
为什么被折叠?



