
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 System.Windows.Forms;
using test;
namespace Personal_finance_system
{
public partial class Income2 : Form
{
public Income2()
{
InitializeComponent();
}
private void Income2_Load(object sender, EventArgs e)
{
string sql_select2 = "select * from income";
DataTable ds = DbHelperSQL.OpenTable(sql_select2);
dataGridView2.DataSource = ds;
}
private void button1_Click(object sender, EventArgs e)
{
string sql_select1 = "select * from income";
DataTable ds = DbHelperSQL.OpenTable(sql_select1);
dataGridView2.DataSource = ds;
}
private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
????????
}
}
}
}
uj5u.com熱心網友回復:
C# 的DataGridView 操作資料庫 插入,更新,洗掉轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/40460.html
標籤:數據庫
