且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在表单中添加详细信息然后将详细信息传输到Datagridview

更新时间:2022-12-07 11:54:55

试试这个

try this
private void button1_Click(object sender, EventArgs e)
        {
            grdView.Rows[0].Cells["textbox"].Value = textBox1.Text;
        }





这里textbox是列的名称



希望能为你做什么



here textbox is the name of the column

hope that will do for you