c#判断DatagridView表里是否有某个字段时间:2024-04-24 01:49:18if (DatagridView.Columns.Contains("旧ID")) { 有 } else{ 没有 }