hi,
how can i add data to a datagridcombo box column from a mdf file,
i want to take the first name of all employees and display in the datagrid view combo box column:
is the code below correct , please can u tell me what should i do to suite to the above problem
thanx
db.openConnection();
String query = @"Select FirstName from Emplooyee";
SqlCommand command = new SqlCommand(query,DB.getConnection());
SqlDataAdapter adapter = new SqlDataAdapter();
DataTable dt = new DataTable();
adapter.Fill(dt);
dgvPAction.Rows[0].Cells[1].Value = adapter.Fill(dt).ToString();