Adding button to some cells in GridViewTextBox

0 Answers 1 View
GridView
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Toby asked on 18 Sep 2025, 11:38 AM | edited on 18 Sep 2025, 11:50 AM

Hi,

What is the best approach to adding a simple button to some cells (not all) in a grid view text box column? My column is read only and contains html text. I should also add that the button should overlay any text that might appear underneath it... So cell cannot contain stacked or docked sub elements.

I simply want to be able to show and handle a button at the top right hand corner of the cell. This cell is only added based on a some other algorithm in my code.

 

I thought aboutusing ButtonRenderer in a CellPaint but the text and button outline appear in 2 different places, so it seems that ButtonRenderer does not consider e.Graphics suplied to cell paint!

Any ideas?
Cheers
Toby

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or