Good Day Experts!
Not too long ago I had a question posted about adding line numbers to the left-most "gray" column in a DataGrid. I was able to it working for the DataGrid. Now, I have copied the DataGrid onto 4 tabs on a TabControl and the line numbers don't work!!!
I have tried and tred to look at the code to make sure I am not missing anything. Her is the code I am using for each DataGrid:
Dim row2 As DataGridViewRow
Dim j As Integer = 0
For Each row2 In dgrdAcceptedSF.Rows
dgrdAcceptedSF.Rows(j).HeaderCell.Value = (1 + j).ToString
j += 1
Is there anything that may have been reset in the DataGrid when I copied it that may have been reset causing issues you think?