C# .NET - dynamic datagridview button click cell value change textbox value edit&update c#

Asked By hariharan v on 20-Nov-12 12:13 AM
hariharan v replied to hariharan v on 20-Nov-12 04:24 AM
    private void Form1_Load(object sender, EventArgs e)
        {

  dataGridView1.EditMode = DataGridViewEditMode.EditOnEnter;
            DataGridViewButtonColumn EditColumn = new DataGridViewButtonColumn();
            EditColumn.Text = "Update";
            EditColumn.Name = "Update";
            EditColumn.DataPropertyName = "Edit";
            EditColumn.DisplayIndex = 0;
            EditColumn.UseColumnTextForButtonValue = true;


            dataGridView1.Columns.Add(EditColumn);
            this.dataGridView1.EditingControlShowing += new DataGridViewEditingControlShowingEventHandler(dataGridView1_EditingControlShowing);


}