Re: [ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-05 Thread Frans Bouma
> Nope failed with DataGridView...moved to UltraGrid...failed on that as > welltried to create a relationship back to itself on the table, so > that the object would appear as a column in itself.failed in the > Model designer. Hmm. In the devexpress grid I can create a drop

Re: [ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-05 Thread Nicholls, Mark
Nope failed with DataGridView...moved to UltraGrid...failed on that as welltried to create a relationship back to itself on the table, so that the object would appear as a column in itself.failed in the Model designer. > -Original Message- > From: Discussion of advanced .NET topics

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-05 Thread Brady Kelly
> Correct me as I may be all wrong but I thought dotnet recommends that > you > not count on -1,0,1 being indicators for true and false? Have I got > this > all wrong (extremely likely)? > > John Warner They do, but they use them here to indicate not just true or false, but also whether one string

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-05 Thread Simon Robinson
It works fine for me (other than that your code doesn't compile because you need String.Format() inside the exception constructor). Are you sure there isn't at typo or something in your code? My test code is: // code works fine - string.Compare() returns 0 so no exception string str1 = "-myl

Re: [ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-05 Thread Nicholls, Mark
Thanks very much for thatI try to use the standard control when possible but the datagrid thing is a complete pain at times...and gives little clue of what the real problem is...inner exception is always blank. I managed previously to get this working with Linq2SQLwith much wrestling it ev

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-05 Thread John Warner
Correct me as I may be all wrong but I thought dotnet recommends that you not count on -1,0,1 being indicators for true and false? Have I got this all wrong (extremely likely)? John Warner > -Original Message- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On B

[ADVANCED-DOTNET] String.Compare seems to fail when it should not

2008-09-05 Thread Ryan Heath
Hi, See following snippet, if (0 != string.Compare(str1, str2, StringComparison.OrdinalIgnoreCase)) { throw new Exception("Compare failed str1:({0}) length:{1} str2:({2}) length:{3}", str1, str1.Length, str2, str2.Length); } it throws, for instance, with "Compare failed str1:(-mylife) length:7

Re: [ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-05 Thread Frans Bouma
> In fact saying that I can't (out of the box) get a DataGridViewTextCell > to work correctly either, it displays the class name...i.e. the default > ToString()and there is no option to set which property to display. I think your prob is caused by the fact that the EF doesn't have the

Re: [ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-05 Thread Nicholls, Mark
In fact saying that I can't (out of the box) get a DataGridViewTextCell to work correctly either, it displays the class name...i.e. the default ToString()and there is no option to set which property to display. Irratatingly I can't find any entity frameworks samples that I can download...even

[ADVANCED-DOTNET] DataGridViewComboBoxColumn and entity framework....

2008-09-05 Thread Mark Nicholls
Has anyone got this to work? DataGridView are unpleasant things that don't tell you what the problem is... I've used the Microsoft Course Sample, and ammended the Department field to be a DataGridViewComboBoxColumn... bind it to a Department binding source. I'm then given a Display member...whi