Avatar of rwheeler23
rwheeler23
Flag for United States of America asked on

Data Grid View with added check box

I have a dgv that I have added a check box to the grid. I have discovered that even though I see the check box on the screen it is not really there until I refresh the screen. When I loop through the dgv the first time, I will get the message "Object not set to an instance of an object" when it hit this added column. If I refresh the screen I do not get this message. Is there some sequence I need to follow so that  a checkbox can be added to the dgv and then have the screen refreshed upon initially opening the form? This is VS C#. I think I am missing something when it comes to understanding what happens behind the scenes when a form is initially presented.
C#

Avatar of undefined
Last Comment
rwheeler23

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Maheshwar R

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rwheeler23

ASKER
Thank you for this useful tip.
Your help has saved me hundreds of hours of internet surfing.
fblack61