How do I find out if a column exists in a VB.Net DataRow

后端 未结 4 1060
暖寄归人
暖寄归人 2021-02-01 00:44

I am reading an XML file into a DataSet and need to get the data out of the DataSet. Since it is a user-editable config file the fields may or may not be there. To handle missin

4条回答
  •  情深已故
    2021-02-01 01:12

    You can use DataSet.Tables(0).Columns.Contains(name) to check whether the DataTable contains a column with a particular name.

提交回复
热议问题