Update, Delete in gridview
hi friends,
i have inserted two buttons(Update, Delete) in datagridview in windowsform application i want perform action on Update, delete buttons for each row in dataGridview Could anyone help me
My code is
private void from_load(object sender, EventArsgs e)
{
this.eMpDETAILTableAdapter.fill(this.eMPDataset.EMP_DETAIL);
{
DataGridViewButtonColumn dgbutton = new DataGridViewButtoncolumn();
dgButton.flatstyle = Flatstyle.Flat;
dgButton.HeaderText = "Button";
dvButton.Name= "Button";
dvButton.UseColumnTextForButtonValue = true;
dvButton.Text = "Update";
dataGridView1.Columns.Add(dvButton);
// in this way i have created another button name "delete"
private void dateGridView1_CellContentclick(object sender, DataGridViewCellEventArgs e )
{
}
thanks