Hi Linda Call,
By default, the glyph alwaysdisplays at the right of the headCell of a column.
It's impossible to control the placement of if.
But you can handle the cellPainting event of a dataGridVew to draw the text and the arrow yourself.
| privatevoiddataGridView1_CellPainting(objectsender,DataGridViewCellPaintingEventArgse) |
| { |
| if(e.ColumnIndex>-1&&e.RowIndex==-1) |
| { |
| e.Paint(e.CellBounds,DataGridViewPaintParts.All&~DataGridViewPaintParts.ContentForeground); |
| e.Graphics.DrawString("ASDAa",e.CellStyle.Font,newSolidBrush(e.CellStyle.ForeColor),e.CellBounds); |
| e.Handled=true; |
| } |
| } |
If there's any problem, please feel free to let me know.
Best regards,
Steven Yu