BangBang BangBang - 1 year ago 91
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download