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 UserControl_1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Column1.ButtonColumnClick += new DataGridViewCellEventHandler(this.ButtonColumn_Click);
}
private void ButtonColumn_Click(object sender, DataGridViewCellEventArgs e)
{
MessageBox.Show("55555");
}
private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'bA_210S_1_2554DataSet.ALS_F_717' table. You can move, or remove it, as needed.
this.aLS_F_717TableAdapter.Fill(this.bA_210S_1_2554DataSet.ALS_F_717);
// TODO: This line of code loads data into the 'bA_210S_1_2554DataSet.Data' table. You can move, or remove it, as needed.
this.dataTableAdapter.Fill(this.bA_210S_1_2554DataSet.Data);
// navigatortor1.InstallDatetime();
}
}
}
ออกมาเป็น
Code
namespace UserControl_1
class Form1 : Form
public Form1()
private void ButtonColumn_Click(object sender, DataGridViewCellEventArgs e)
private void Form1_Load(object sender, EventArgs e)