This is my code:
Expand|Select|Wrap|Line Numbers
- If dgTransaction.DataSource.Equals(Nothing) Then
- Dim i As Integer
- For i = 0 To dgTransaction.Rows.Count - 1
- dt.Rows.Add(dgTransaction.Rows(i))
- Next
- End If
Object reference not set to an instance of an object.
I can see in Watch window that dgTransaction.DataSource=Nothing. what should I do?