c# - How can i solve this error:"Column 'ASSET' does not belong to table ."? -


How can I resolve this error: "The column is not related to the 'asset' table." ? I really know that this is from this table: I want to do this:

If (mydataset.hasgot (dr ["asset"]. Tostring ())

// do something}}

 for  (int i = 0; i  

My error: "The column is not related to 'ASSET' table." See the Pay Code: [0] .Columns.Contains (DR _ ["ASSET"]. ToString ())



How can I control my colums that contain "property"? < / P>

Dr. _ ["ASSET"]. ToString () gives a string representation Whatever the data is in the column called "ASSEST" in the , which is not obvious what you want, here is right:

  if (ds .ables [0]. Columns Includes ("ASSET"))  

Comments