Ashok Kumar

Ashok Kumar

  • NA
  • 38
  • 46.1k

Update, Delete in gridview

Jun 25 2012 2:56 AM
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









Answers (2)