using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public string sendVar;
private void Button1_Click(object sender, EventArgs e)
{
DataRow selectRow ;
Form2 f = new Form2();
f.ShowDialog();
selectRow = f.selectRow;
this.TextBox2.Text = selectRow[0].ToString();
////column แรก
this.TextBox3.Text = selectRow[1].ToString();
this.TextBox4.Text = selectRow[2].ToString();
this.TextBox5.Text = selectRow[4].ToString();
}
}
}