using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
Using System. The Threading. The Tasks;
using System.Windows.Forms;
Using the test;
The 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";
The DataTable ds=DbHelperSQL. OpenTable (sql_select2);
DataGridView2. The DataSource=ds;
}
Private void button1_Click (object sender, EventArgs e)
{
String sql_select1="select * from income";
The DataTable ds=DbHelperSQL. OpenTable (sql_select1);
DataGridView2. The DataSource=ds;
}
Private void dataGridView2_CellContentClick (object sender, DataGridViewCellEventArgs e)
{
??????????
}
}
}
}
CodePudding user response:
c # DataGridView operation database insert, update, delete