Well I posted this in the databinding section and heard nothingbut the whistling of the wind and the tumbleweedbouncing across the ground.
Ithink Ihave a problem with the datagridview (or perhaps the tab control?) and sourcesafe.
Steps to Reproduce:
- Create a test windows project and put it in source safe.
- Create a data set and link to a SQL database (northwind for example)
- Add a table
- Save the dataset
- Open form1 in design mode
- add a tab control
- Add a datagridview to the second page
- bind it (using the designer) to one of the tables in your database.
- save
- check in
- close the designer
- open form1 inthe designer.
This is where we hit our problem, it prompts for checkout everytime, if you say yes to checkout and then when you save and do a diff in sourcesafe the files are identical.
If you cancel you get a string of checkout error messages and then (finally) the form is displayed. Choose the second tab, you get prompted for checkout again if you cancel you get an exception message in the place of the tab control.
It has to be bound, so I think the designer is uneccisarily attempting to re-write the databindings code, even though they haven't changed, but this is only a hypothesis.
Any help would be greatly appreciated, this is becoming a real problem for us as many of our forms have bound datagrids on tabcontrols, and often you want to view a file without modifying it.
I have read some posts for a similar problem in webforms that suggest setting sourcecontrol to do nothing on edit is the solution, this doesn't seem right to me, it seems to be a (not very good) workaround.
Cheers,