3
That really is a line header (Row header) and it is perfectly possible to add values to it.
All you have to do is use the property HeaderCell
of the line.
private void SetarCabecalhoLinha(DataGridView dgv)
{
foreach (DataGridViewRow linha in dgv.Rows)
{
linha.HeaderCell.Value = (linha.Index + 1).ToString();
}
}
I would have to use a column inside the Row to be my header so?
– Bart
@Bart No need to add column no
– Jéf Bueno
@jbueno as well?
– Bart
@Bart I meant that you can yes add values in this space.
– Jéf Bueno