Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I created a usercontrol for my project and I put a datagridView inside this control I choosed a datasource for this datagridview from my database .
but when I bring this usercontrol to my mainform and run the project it doesnt show any data from my database.
when I directly create datagridview inside my mainform its work .
I need to do this by using usercontrol .
Posted

1 solution

When you asked this yesterday[^], you at least provided a code fragment. Not, I must admit, a very useful code fragment, but a code fragment none the less.

Why do you think you will get a better answer by asking the same question again, but providing less information?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900