DataTable dt=new DataTable(); DataColumn dc=dt.Columns.Add("OBJECTID",Type.GetType("System.String")); dc = dt.Columns.Add("YDDW", Type.GetType("System.String")); dc = dt.Columns.Add("XMMC", Type.GetType("System.String"));
DataRow dr = dt.NewRow(); dr["OBJECTID"] = strOID; dr["YDDW"] = strYDDW; dr["XMMC"] = strXMMC; dt.Rows.Add(dr);