N
N
nubic2017-02-08 13:24:16
visual studio
nubic, 2017-02-08 13:24:16

How to get rid of arrow in RowHeader DataGridView C#?

Hello!
I want to make a neat thin column of row headers in the datagrid,
but the arrow gets in the way. With it, the column is too wide. Maybe someone faced such a problem, help me figure it out :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2017-02-16
@Etrimus

winforms? Is this the arrow? joxi.ru/82QNbWdixROBAd
If yes, then the RowHeadersVisible property will save you.
And to leave the stobic, but hide the arrows:

dataGridView1.RowHeadersDefaultCellStyle.Padding = new Padding(dataGridView1.RowHeadersWidth);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question