Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi VB Guru's

Actually I have 2 datagridview controls which should get filled with data after the user enters text in a textbox. This code was written in text box's text changed event.

The requirement is like this. Let's say if the year column from database has values 1 / 3 / 5, the data should get filled in datagridview 1 else i.e. if the year has 2 / 4 / 6, the data should get filled in datagridview 2.

But surprisingly, the data from dataset is getting filled in one datagrid only. Even after I put if condition.

And on top of it, if I put break point, it is not firing and the message says, the break point will not currently be hit. No executable code is associated with this line.

Any idea how to solve this?

Anand
Posted
Comments
Sergey Alexandrovich Kryukov 5-Jul-12 13:13pm    
There is more than one way to screw up things. So, could you make a short but complete code sample to manifest the problem? Use "Improve question" above.
--SA
[no name] 5-Jul-12 13:17pm    
Lots of ideas but none of them are worth anything because you failed to show anyone your code that is manifesting a problem so they can help you.
Abhinav S 5-Jul-12 13:19pm    
Do a rebuild and try again.

1 solution

In Visual Studio, Build menu -> Clean Solution. Then Rebuild your project.
 
Share this answer
 
Comments
Anand Rangaraju 11-Jul-12 2:04am    
Hi Dave Kreskowiak,

Thanks for the post.
I have found out the same, changed from debug mode to release and back. And it is working fine.

Sorry for responding late as there was no internet connectivity from my ISP since last 5 days.

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