Private Sub DataGridView1_CellValueNeeded(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellValueEventArgs) Handles DataGridView1.CellValueNeeded If e.RowIndex >= 0 AndAlso e.ColumnIndex = Me.slno1DataGridViewTextBoxColumn.Index Then e.Value = e.RowIndex + 1 End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)