Check out the following code
protected void grdVacancy_SelectedIndexChanged(object sender, EventArgs e)
{
string query= "insert into tablename (columnname) values('"+ grdVacancy.SelectedRow.Cells[1].Text+"')";
}
mark it solution if you got your answer and dont forget to rate..
Thanks
Ashish