dataGridView1.DataSource=DAL.SqlHelper.ExcuteDataTable(sqlStr);
//----------------------------DataGridView添加一行时自动生成序列行,未实现
int count = dataGridView1.Columns.GetColumnCount(DataGridViewElementStates.Displayed);
int linecount = dataGridView1.RowCount-1;
//dataGridView1["Column1", 3].Value = 444;
for (int i = 0; i < 3; i++)
{
dataGridView1["Column1", i].Value = 555;
}
//dataGridView1["PCID", 4].Value = 333;
Console.WriteLine(linecount + "-----" + count);
//-----------------------------------------