I have a Windows Form Application with a DataGridView.
AutoGenerateColumns is false so I have added the columns manually
I left out the ID field from the added columns and added a DataGridViewButtonColumn column.
How do I associate the ID to the row without displaying it so that the Delete button deletes the row it is on?
As per @forklift comment. Making the column not visible worked fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.