Retreive one row from DB
If I am retrieving many rows from a database I would use this.
foreach (DataRow row in ds.Tables["ErrorCodes"].Rows)
{
ErrorCodes.Items.Add(row["ID"].ToString());
}
How would I retrieve only one row of data without putting it in a foreach loop?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

abc28 reputationPosted Jun 3, 2004, 5:09 PM EDT