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:
this true @ runtime, it's not not displaying in designer:
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
Post a Comment