BangBang BangBang - 8 months ago 40
C# Question

How to add buttons to datagridview cells not entire column

How do you add a button to cells in a row and not the entire column in a datagridview?


What I endded up doing was stacking a DataGridView on top of another one. I turned off the border, gridlines, and scrollbars. Then create dynamic button columns to match the main datagridview with only one row of buttons. Then I used the ColumnWidthChanged event handler to resize both the DataGridViews together. Anyway's this was my workaround for now.