C# .NET - Binding datagridviewcombobox with database

Asked By saif on 07-May-13 01:44 AM
i took datagridview where i have assigned its first column as name (which is a datagridview combobox) and 2nd column(datagridview textbox) as age.

my database name is :student.

table name is tblstudent_detail (column1: name and column2:age)

i need to bind datagridview combobox with the database so that all the student name should populate in that. and when i select any name from the combobox then age should show in its corresponding coulmn that is "age"

how i can perform this