Click here to Skip to main content
15,895,011 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
BillWoodruff2-Apr-15 3:28
professionalBillWoodruff2-Apr-15 3:28 
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 
Sander: Yes, it's 'clever' code.

I have many years with Winforms, and the DataGridView. Also with building software for users, using a team of developers.

To my mind (based on your necessarily limited description) you are re-coding something that the DataGridView already does. It does it (a) more efficiently than your code, (b) with less potential for support issues (ie, bugs), and (c) in a more user-friendly manner.

If you were on my team I would see two problems. They are very common problems, so fairly straightforward to deal with.

The first problem is: Why on earth do you need to invoke the sort from a drop-down? Does the client really want to pay $10,000 to be able to sort clunky-fashion, instead of just click the damn header like every other right-thinking user?
Go back to the user and enlighten them on what they really want to do here.

The second problem is: You (the developer) have decided (as developers often do) to code your way out of a corner. You develop code that must be laboriously explained (although it is excitingly generic). Then you post the code on a geeky forum, looking for approval. I know why you've done that: because you know there are other guys on your team who will diss your 'clever' code.

Pro tip: you are writing Winforms apps for end users. You have not yet been called to write cross-platform compilers for GoogIntelSoft.

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."
GeneralRe: Where does it end? Pin
Sander Rossel2-Apr-15 11:01
professionalSander Rossel2-Apr-15 11:01 
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 

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.