1
Answer

Retreive one row from DB

Ask a question
howard.kline

howard.kline

20y
1.5k
1
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?

Answers (1)