need the code asap pls..

ChrisHunter commented: Impolite! Don't just ask for code, show your attempts first and ask for guidance and a give more details of your issue -1

more information would be helpful.

assuming that you are returning the ID primary key from the table and displaying it either visable or hidden you can do a click event on the selected row in the datagridview (assuming you are using datagridview for population).

double click on the datagridview to diaplay

 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
            // reset variable that will hold the id number
            int rowid = 0;
            // obtain row id from cell 0 in datagridview selected item
            rowid = Convert.ToInt16(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());

            // pass the id into the DELETE FROM tablename WHERE id='" + rowid + "'

im sorry but this is all i can give as you have supplied no information on what is required.