[code]
string tmpSQL = "string to get the list employee";
DataTable dt = Conection.FillDatatable(tmpSQL);
DataView dv = new DataView(dt);
// Search fast Employee
dv.RowFilter = "set condition unique 1 recoder";
if (dv.Count == 1)
{
//error at this buffer is not get unique sample template
txtIdEmployee.Text = dv.Table.Rows[0]["ID"].ToString();
txtNameEmployee.Text = dv.Table.Rows[0]["Employee"].ToString();
}
else
{
//...
}
[/code]