I have a question about how to fill the rows in a datagridView in c #, I did this but I want it to be shown automatically without having to add a column
private void dataGridViewCatalogoPartesTotal_CellValueNeeded(object sender, DataGridViewCellValueEventArgs e)
{
if (e.RowIndex >= 0 && e.ColumnIndex == Columna.Index)
{
e.Value = e.RowIndex + 1;
}
}
And this was the result
But I want to list it this way