A
Andrus
..NET 2 Winforms DataGridView.
I noticed that if column width is small
column.HeaderCell.SortGlyphDirection = ListSortDirection.Ascending;
does not display sort glyph.
To fix this I desided to underline column caption when mouse
in clicked in column header.
I tried
dataGridViewColumn.HeaderCell.Style.Font.Underline = true;
and
DataGridViewCellStyle dgvcellStyle = new DataGridViewCellStyle();
dgvcellStyle.Font.Underline = false;
dataGridViewColumn.HeaderCell.Style = dgvcellStyle;
but both attempts cause compile error
Property or indexer 'System.Drawing.Font.Underline' cannot be assigned to --
it is read only
How to underline grid column caption at runtime ?
Or any other idea how to fix soft glyph visibility issue ?
Andrus.
I noticed that if column width is small
column.HeaderCell.SortGlyphDirection = ListSortDirection.Ascending;
does not display sort glyph.
To fix this I desided to underline column caption when mouse
in clicked in column header.
I tried
dataGridViewColumn.HeaderCell.Style.Font.Underline = true;
and
DataGridViewCellStyle dgvcellStyle = new DataGridViewCellStyle();
dgvcellStyle.Font.Underline = false;
dataGridViewColumn.HeaderCell.Style = dgvcellStyle;
but both attempts cause compile error
Property or indexer 'System.Drawing.Font.Underline' cannot be assigned to --
it is read only
How to underline grid column caption at runtime ?
Or any other idea how to fix soft glyph visibility issue ?
Andrus.