日期:2014-05-17 浏览次数:20461 次
DataTable dt;
BindingSource bs;
private void Form1_Load(object sender, EventArgs e)
{
dt = new DataTable();
dt.Columns.Add("id", typeof(string));
dt.Columns.Add("aa", typeof(string));
dt.Columns.Add("a", typeof(string));
dt.Columns.Add("b", typeof(string));
dt.Columns.Add("c", typeof(string));
dt.Columns.Add("d", typeof(string));
bs = new BindingSource();
bs.DataSource = dt;
this.dataGridView1.DataSource = bs;
}
string sturl;
int ip = 10;
private void button1_Click(object sender, EventArgs e)
{
//sturl = "http://127.0.0.1/MidasEvents1.htm";
//GetWebContent();
weburl wb;
for (int i = 1; i <= 50; i++)
{
ip++;
sturl = "http://127.0.0.1/MidasEvents" + i + ".htm";
wb=new weburl(sturl, ip, dt);
}