Trupti Rane
Trupti Rane

Reputation: 1

Multiple Buttons in One Column of DataGridView

I'm developing a windows application in which I want to add three buttons or links in one column of dataGridView Control.

Buttons will be Edit, Update and Delete and those three buttons come under one column name Action. As per user's selection, action method will be invoked and perform the particular function. Is it possible to add three buttons in one column and if yes then how? Also, how will they invoke separate event?

Thanks in advance!

Upvotes: 0

Views: 2591

Answers (1)

Ehsan
Ehsan

Reputation: 32721

is it possible to add three buttons in one column

No, it is not possible using the built in control. The preferred method is that you add 3 buttons in 3 columns

how they will invoke separate event

If you use the method i have mentioned above you can handle the

For Winforms CellClick event

For Webforms RowCommand event

Upvotes: 1

Related Questions