Please any one help me, how to insert two button in one column of data grid view button column in data grid view using c# windows application.
I want add two button like Change Rep and Undo button in one column of datagridview.
ChangeRep = new DataGridViewButtonColumn(); // ChangeRep.UseColumnTextForButtonValue = true; ChangeRep.HeaderText = ""; ChangeRep.Width = 120; ChangeRep.Name = "ChangeRep"; ChangeRep.Text = "Change Rep"; ChangeRep.HeaderText = "ChangeRep"; ChangeRep.FlatStyle = FlatStyle.Popup; ChangeRep.DefaultCellStyle.BackColor = System.Drawing.Color.Navy; ChangeRep.DefaultCellStyle.ForeColor = System.Drawing.Color.White; ChangeRep.UseColumnTextForButtonValue = true; //gv_CRWS_details.Columns.Insert(23, ChangeRep); undo = new DataGridViewButtonColumn(); // ChangeRep.UseColumnTextForButtonValue = true; undo.HeaderText = ""; undo.Width = 120; undo.Name = "undo"; undo.Text = "Undo"; undo.HeaderText = "ChangeRep"; undo.FlatStyle = FlatStyle.Popup; undo.DefaultCellStyle.BackColor = System.Drawing.Color.Navy; undo.DefaultCellStyle.ForeColor = System.Drawing.Color.White; undo.UseColumnTextForButtonValue = true; gv_CRWS_details.Columns.Insert(23,ChangeRep);