需求如下:
查询poly的年龄
示例代码:
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;
namespace DataTable_Match
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//添加列
for (int i = 1; i <= 5; i++)
{
dataGridView1.Columns.Add("", "test" + i.ToString());
}
//添加行
for (int j = 1; j <= 5; j++)
{
dataGridVie