For the
Select
method of
DataTable
class, the Text in the condition of
FilterExpression
shall be enclosed in single quotes. Hence, put single quotes in the select method as shown below
rec = ds.Tables[0].Select("Enm.Id='" + txtemp.Text + "'")[0];
You may vote and accept the solution if your problem is solved, otherwise please post your queries