title: Obtaining values from DevExpress GridControl
body: <p>How to populate data into text fields whenever I click on the cell of the row?</p>
  
  <p>For standard DataGridView I can use the following the code</p>
  
  <pre><code>void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
  {
      txtguard_id.Text = dataGridView1.SelectedRows[0].Cells["GuardId"].Value.ToString();
      DateHired.Value = (DateTime)dataGridView1.SelectedRows[0].Cells["DateHired"].Value;
      Firstname.Text = dataGridView1.SelectedRows[0].Cells["FirstName"].Value.ToString();
      Middlename.Text = dataGridView1.SelectedRows[0].Cells["MiddleName"].Value.ToString();
      Lastname.Text = dataGridView1.SelectedRows[0].Cells["LastName"].Value.ToString();
      txtguard_street.Text = dataGridView1.SelectedRows[0].Cells["Street"].Value.ToString();
      txtguard_brgy.Text = dataGridView1.SelectedRows[0].Cells["Barangay"].Value.ToString();
      txtguard_procity.Text = dataGridView1.SelectedRows[0].Cells["ProvinceorCity"].Value.ToString();
      txtguard_age.Text = dataGridView1.SelectedRows[0].Cells["Age"].Value.ToString();
      txtguard_bday.Value= (DateTime)dataGridView1.SelectedRows[0].Cells["Birthdate"].Value;
      txtguard_male.Checked = (bool)dataGridView1.SelectedRows[0].Cells["Gender"].Value;
      txtguard_female.Checked = (bool)dataGridView1.SelectedRows[0].Cells["Gender"].Value;
  }
  </code></pre>
  
  <p>But in GridControl i dont know how to do it...</p>