111,120
社区成员
发帖
与我相关
我的任务
分享for (int j = 0; j < dataGridView1.Rows.Count; j++)
{
if (dataGridView.Columns[i].ValueType == typeof(string)) continue;
if (dataGridView.Rows[j].Cells[i].Value != DBNull.Value)
values.Add(Convert.ToDouble(dataGridView.Rows[j].Cells[i].Value));
}
if(typeof(string) == dataGridView.Rows[j].Cells[i].Value.GetType())
{
//code here
}