You need to create the new row first, for example:
<pre>DataRow newRow = dt.NewRow();</pre>
Then, set the appropriate data, for example:
<pre>newRow[NAME] = "New row";</pre>
and add the new row to the data table, for example:
<pre>dt.Rows.Add(newRow);</pre>
Regards,
Last Wiki Answer Submitted: October 3, 2008 3:15 pm by carlosdl63,535 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.