title: How to make a DataTable ReadOnly?
body: <p>I am writing a function that return a DataTable object. I am using the <code>DataTable.Load( DataReader)</code> to populate the DataTable.  However, as I understand it, although the underlying DataReader is ReadOnly, Forward-only; once it is loaded into the DataTable; other programmers can still update the data by <code>DataTable.Rows(x).Column(y).ReadOnly = False</code> and then setting the value.</p>
  
  <p>Is there away to ensure that the DataTable that my function return is ReadOnly?
  In the older ADODB days, I use the ADODB.LockTypeEnum to mark the returned recordset is readonly.</p>
  
  <p>By ReadOnly, I mean that the caller to my function (who get the returned DataTable) cannot make changes to the Rows data and/or update it at all (ie, readonly).</p>