Click here to Skip to main content
15,920,111 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Where does it end? Pin
scmtim2-Apr-15 4:30
scmtim2-Apr-15 4:30 
GeneralRe: Where does it end? Pin
Sander Rossel2-Apr-15 4:33
professionalSander Rossel2-Apr-15 4:33 
GeneralRe: Where does it end? Pin
scmtim2-Apr-15 5:37
scmtim2-Apr-15 5:37 
GeneralRe: Where does it end? Pin
Sander Rossel2-Apr-15 5:50
professionalSander Rossel2-Apr-15 5:50 
GeneralRe: Where does it end? Pin
_WinBase_2-Apr-15 5:46
_WinBase_2-Apr-15 5:46 
GeneralRe: Where does it end? Pin
Sander Rossel2-Apr-15 5:50
professionalSander Rossel2-Apr-15 5:50 
GeneralRe: Where does it end? Pin
Robert g Blair2-Apr-15 10:30
Robert g Blair2-Apr-15 10:30 
GeneralRe: Where does it end? Pin
Sander Rossel2-Apr-15 11:01
professionalSander Rossel2-Apr-15 11:01 
Robert g Blair wrote:
something that the DataGridView already does
I have had this problem before and sorting a DataGridView is somehow a very difficult task when you're not using DataViews...
Robert g Blair wrote:
Why on earth do you need to invoke the sort from a drop-down?
Because it's much easier than sorting the DataGridView without a DataView (why is this so hard anyway?).
Robert g Blair wrote:
Then you post the code on a geeky forum, looking for approval
Actually I don't. I was expecting this to fail the 'clever'-test. But where does real clever become 'clever'? That I wonder. And I wondered that when writing the code. It does everything I need and it does it well (better than the DataGridView which is still impossible to sort...), but no mortal is ever going to figure out those generics (well, so to speak, I'm not that clever Laugh | :laugh: ).
I'm no newbie looking for approval. In fact I don't think the people who know me question my professionalism or my 'cleverness' (although they do, from time to time, question my sanity) Smile | :)
Robert g Blair wrote:
there are other guys on your team who will diss your 'clever' code
Actually they were quite impressed I could concoct such a piece of unreadable, yet compiling, code Laugh | :laugh:
I did already make the code a bit simpler.
Robert g Blair wrote:
As your boss I would tell you: "Sander, when we deliver that software (next week BTW), our client will not pay us one red cent extra for the cleverness of your grid sorting code. Any bugs it generates in the approval period will cost me money."
Actually we're being paid by the hour Laugh | :laugh:
That isn't to say I'm not doing my best or working my fastest. Our clients are programmers too and they will check out my code.
I'm professional and practical enough to know when to stop working on a 'clever' solution and look for another solution.
This solution here cost me about 15-30 minutes, which is infinitely faster than sorting the DataGridView without a DataView.

If only it were actually easy to out-of-the-box sort that DataGridView... Sigh | :sigh:
I still wake up at night, sweating, screaming "InvalidOperationException! The DataSource does not support sorting!" (or something like that)...
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: Where does it end? Pin
BillWoodruff3-Apr-15 22:28
professionalBillWoodruff3-Apr-15 22:28 
GeneralRe: Where does it end? Pin
PIEBALDconsult4-Apr-15 7:03
mvePIEBALDconsult4-Apr-15 7:03 
GeneralNews Websites Pin
Kevin Marois1-Apr-15 7:47
professionalKevin Marois1-Apr-15 7:47 
GeneralRe: News Websites Pin
R. Giskard Reventlov1-Apr-15 7:59
R. Giskard Reventlov1-Apr-15 7:59 
GeneralRe: News Websites Pin
Kevin Marois1-Apr-15 8:03
professionalKevin Marois1-Apr-15 8:03 
GeneralRe: News Websites Pin
Richard MacCutchan1-Apr-15 21:34
mveRichard MacCutchan1-Apr-15 21:34 
GeneralRe: News Websites Pin
kmoorevs1-Apr-15 8:01
kmoorevs1-Apr-15 8:01 
GeneralRe: News Websites Pin
Kevin Marois1-Apr-15 8:04
professionalKevin Marois1-Apr-15 8:04 
GeneralRe: News Websites Pin
R. Giskard Reventlov1-Apr-15 8:15
R. Giskard Reventlov1-Apr-15 8:15 
GeneralRe: News Websites Pin
Sascha Lefèvre1-Apr-15 8:20
professionalSascha Lefèvre1-Apr-15 8:20 
GeneralRe: News Websites Pin
R. Giskard Reventlov1-Apr-15 8:39
R. Giskard Reventlov1-Apr-15 8:39 
GeneralRe: News Websites Pin
Sascha Lefèvre1-Apr-15 8:17
professionalSascha Lefèvre1-Apr-15 8:17 
GeneralRe: News Websites Pin
snorkie2-Apr-15 3:08
professionalsnorkie2-Apr-15 3:08 
GeneralRe: News Websites Pin
User 84201-Apr-15 8:14
User 84201-Apr-15 8:14 
GeneralRe: News Websites Pin
Eddy Vluggen1-Apr-15 9:03
professionalEddy Vluggen1-Apr-15 9:03 
GeneralRe: News Websites Pin
David Crow1-Apr-15 9:28
David Crow1-Apr-15 9:28 
GeneralRe: News Websites Pin
Mark_Wallace1-Apr-15 10:55
Mark_Wallace1-Apr-15 10:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.