判断datatable里是否存在某个字段

ds.Tables[0].Columns.Contains("列名")

原文地址:https://www.cnblogs.com/wa502/p/11603287.html