c# - DataGridView button text not appearing despite UseColumnTextForButtonText set to true -


i've added button column datagridview , want display text "compare" on it. i've set text property compare , usecolumntextforbuttonvalue true, no text displays:

properties set, no text visible

this true @ runtime, it's not not displaying in designer:

no text @ runtime either

how text appear?

edit: prosperity's sake, here's code in generated designer.cs file. haven't added any code form myself yet, there's no chance something's resetting further down line.

//  // compare //  datagridviewcellstyle1.alignment = system.windows.forms.datagridviewcontentalignment.middlecenter; datagridviewcellstyle1.font = new system.drawing.font("calibri", 11.25f, system.drawing.fontstyle.regular, system.drawing.graphicsunit.point, ((byte)(0))); this.compare.defaultcellstyle = datagridviewcellstyle1; this.compare.headertext = "compare"; this.compare.name = "compare"; this.compare.text = "compare"; this.compare.tooltiptext = "compare dictionary definition system definition"; this.compare.usecolumntextforbuttonvalue = true; 

datagridviewbuttoncolumn not display text in button on last row. since in example display 1 row, not shown. add more rows, , text appear in last row.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -