.net - Viewing Row number in GridView Control C# -
i want know if possible add row number each row in gridview control in boxes shown in image.
is possible or not?
you can use code
foreach (datagridviewrow r in datagridview1.rows) { datagridview1.rows[r.index].headercell.value = (r.index + 1).tostring(); }
Comments
Post a Comment