title: Unable to cast object of type 'System.Data.DataColumn' to type 'System.IConvertible'
body: <p>I tried to save a record from a query into a <code>DataRow</code>, but did not make it. I could need some help. This my code: </p>
  
  <pre><code>private DataSet CreateDataSet()
  {
      DataSet ds = new DataSet();
  
      // create Countries table and columns
      DataTable dtApplications = ds.Tables.Add("Applications");
      DataColumn dtApplicationID = dtApplications.Columns.Add("ApplicationID", typeof(int));
      DataColumn dtApplicationName= dtApplications.Columns.Add("ApplicationName", typeof(string));
  
      DataTable dt = new DataTable();
      SqlConnection con = new SqlConnection(MoahannedConnectionString);
      SqlCommand cmd1 = new SqlCommand("select AppID,AppName from Application", con);
      SqlDataAdapter da = new SqlDataAdapter();
      SqlDataReader sdr = null;
      dt.TableName = "Application";
      con.Open();
      sdr = cmd1.ExecuteReader();
      while (sdr.Read())
      {
         AddDataToTable(dtApplicationID, dtApplicationName, dtApplications, ds);
      }
  }
  
  private void AddDataToTable(DataColumn ID, DataColumn Name, DataTable myTable,DataSet ds)
  {
      DataRow row;
      row = myTable.NewRow();
      row["ApplicationID"] = ID;
      row["ApplicationName"] = Name;
      myTable.Rows.Add(row);
  }
  </code></pre>