title: DataGridViewComboBoxColumn set the selectedindex
body: <p>hi i runtime bind the data into datagridview combobox. But how do i make it to auto display the first item? i do not able find the selectedindex from DataGridViewComboBoxColumn.</p>
  
  <pre><code>  DataGridViewComboBoxColumn cbStudentCourse = (DataGridViewComboBoxColumn)dgStudentCourse.Columns["studentCourseStatus"];
                      cbStudentCourse.DataSource = Enum.GetValues(typeof(CourseStudentStatus));
                      cbStudentCourse.DisplayIndex = 1;
  </code></pre>
  
  <p>-- Update ---<br>
  i saw someone doing this in solution 3<br>
  <a href="http://www.codeproject.com/Answers/110537/Select-DataGridViewCombobox-cell-value-at-runtime.aspx#answer2">LInk</a><br>
  Are you sure i need such a long code to just have the first item selected?????? </p>