I can't seem to figure this error out. When I add the code below to the code for my main form it will throw the exception "An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object."
The form is to manage a series of applications I have been creating. The grid view shows a list of banned users and allows for Editing of the records as well as showing them. I have a few text boxes that act as a form so when a row is selected, data is shown there.
Bans_Name_txt.Text = e.CurrentRow.Cells.Item(3).Value.ToString 'It breaks on this line.
I know its this line because if I comment it out the form loads perfectly fine.