DataGridViewButtonColumn.Text Not Showing Up
I’m having a bit of trouble getting the button to show text. I’ve read a few articles (1 | 2) about how to do this, but still, it will not show up. I’ve set the UseColumnTextForButtonValue to True and put text in the Text property (as well as the HeaderText and ToolTipText) and run the program, but to no avail. Anyone got anything for me?
Status: 7/18/07 – Workaround discovered, still looking for “ideal” solution
Solution: Workaround
Since every type of DataGridView[whatever]Column is essentially the same, only differing by appearance, just use a different one and put some text in there, and then handle the Click event. For instance, if you wanted, you could create a button image with the text you want on it and use an image column. It’s not ideal, but it works!
I also have the same problem.
Regards,
Komail Noori
Web Site Design – SEO Expert
To display the same button text for every cell, set the UseColumnTextForButtonValue property to true and set the Text property to the desired button text.
Regards,
Komail Noori
Web Site Design – SEO Expert
Yeah, thanks for the tip, but unfortunately, I tried that. No dice!
i m tried but didn’t get now i mget thank you very much
thanks Komail Noori
Hi
Set button flat style properties to standard
Hope it helps
Regards,
Joel
Hi guys,
Set FlatStyle property to “standard”
Hope it helps
ref: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3089295&SiteID=1