private void LoadDataForEdit(string Id) { UserDBHelper db = new UserDBHelper(this); ICursor cData = db.getUserById(int.Parse(Id)); if (cData.MoveToFirst()) { txtFirstname.Text = cData.GetString(cData.GetColumnIndex("Firstname")); txtLastname.Text = cData.GetString(cData.GetColumnIndex("Lastname")); txtAddress.Text = cData.GetString(cData.GetColumnIndex("Address")); txtEmail.Text = cData.GetString(cData.GetColumnIndex("Email")); } }