c# 给datatable赋值的时候,第一次总会出现如下弹框,确认掉以后数据正常显示,求解!
adapter.Fill(dataset,"Per_Address");m_dt_perAddress=dataset.Tables["Per_Address"];Add...
adapter.Fill(dataset, "Per_Address");
m_dt_perAddress = dataset.Tables["Per_Address"];
AddressView.DataSource = m_dt_perAddress;
for (int i = 0; i < AddressView.Rows.Count; i++)
{
DataGridViewCheckBoxCell checkCell = (DataGridViewCheckBoxCell)AddressView.Rows[i].Cells[0];
checkCell.Value = false;
} 展开
m_dt_perAddress = dataset.Tables["Per_Address"];
AddressView.DataSource = m_dt_perAddress;
for (int i = 0; i < AddressView.Rows.Count; i++)
{
DataGridViewCheckBoxCell checkCell = (DataGridViewCheckBoxCell)AddressView.Rows[i].Cells[0];
checkCell.Value = false;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询